Protractor issue with chromedriver versions like 76.0.3809.12

后端 未结 3 2073
心在旅途
心在旅途 2020-12-20 08:03

Protractor issue while running the conf.js file for new chromedriver versions like 76.0.3809.68

I am trying to run the protractor tests on latest chrome version whic

相关标签:
3条回答
  • 2020-12-20 08:48

    The solution that worked for me was navigating to ./node_modules/protractor and running npm i webdriver-manager@latest.

    Then go back to the app root and run webdriver-manager update and this time it should download the v76 driver.

    0 讨论(0)
  • 2020-12-20 09:07

    You need to install compatible chromedriver version which is 76.0.0. chromedriver versioning convention is now changed to track the chrome version.

    0 讨论(0)
  • 2020-12-20 09:08

    I was also facing same issue, here is a workaround which I tried and it helped me:

    1. I did a fresh install of Node, npm, Protractor - All latest versions
    2. I did npm install -g protractor and webdriver-manager update which downloaded chromedriver_76.0.3809.12.zip and geckodriver_v0.24.0
    3. Also I am using few npm modules in my test which I install locally by npm install command under ~\<Project Folder>\Test\npm_modules
    4. I replaced content of selenium folder from C:\Users\<username>\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\selenium\ to ~\<Project Folder>\Test\npm_modules\Protractor\node_modules\webdriver-manager\selenium\ and this fixed the above mentioned error.
    0 讨论(0)
提交回复
热议问题