This version of ChromeDriver has not been tested with Chrome version 79 error running protractorE2E tests with ChromeDriver Chrome Selenium

前端 未结 2 2036
再見小時候
再見小時候 2021-01-22 16:48

Those are my settings:

.gitlab-ci.yml

image: node
stages:
    - test
tests:
    stage: test
    before_script:
        # Add Google Chro         


        
2条回答
  •  后悔当初
    2021-01-22 17:15

    This error message...

    Starting ChromeDriver 78.0.3904.70
    .
    [1576595033.109][WARNING]: This version of ChromeDriver has not been tested with Chrome version 79.
    .
    15:03:53.323 INFO [RemoteSession$Factory.lambda$performHandshake$0] - Started new session 26b7b655c1318cbcde9cfb69871f56ad (org.openqa.selenium.chrome.ChromeDriverService)
    (node:15719) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    

    ...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.


    Your main issue is the incompatibility between the version of the binaries you are using as follows:

    • You are using chromedriver=78.0
    • Release Notes of chromedriver=78.0 clearly mentions the following :

    Supports Chrome version 78

    • You are using chrome= 79.0
    • Release Notes of ChromeDriver v79.0 clearly mentions the following :

    Supports Chrome version 79

    So there is a clear mismatch between the ChromeDriver v78.0 and the Chrome Browser v79.0


    Solution

    Ensure that:

    • ChromeDriver is updated to current ChromeDriver v79.0 level.
    • Chrome is updated to current Chrome Version 79.0 level. (as per ChromeDriver v79.0 release notes)
    • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.

    Reference

    You can find a relevant detailed discussion in:

    • How to work with a specific version of ChromeDriver while Chrome Browser gets updated automatically through Python selenium

提交回复
热议问题