由于chromedriver_74.0.3729.6,ng e2e无法启动

时间:2019-05-04 17:09:31

标签: angular selenium protractor

我跑步

ng e2e

我收到错误日志。

Date: 2019-05-04T16:49:58.382Z
Hash: 1e913b86ba4c68be859d
Time: 7496ms
chunk {es2015-polyfills} es2015-polyfills.js, es2015-polyfills.js.map (es2015-polyfills) 284 kB [initial] [rendered]
chunk {main} main.js, main.js.map (main) 12.1 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 236 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 181 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 4.1 MB [initial] [rendered]
ℹ 「wdm」: Compiled successfully.
[19:49:58] I/update - chromedriver: file exists /home/martin/tmp/appS/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6.zip
[19:49:58] I/update - chromedriver: unzipping chromedriver_74.0.3729.6.zip
[19:49:58] I/update - chromedriver: setting permissions to 0755 for /home/martin/tmp/appS/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6
[19:49:58] I/update - chromedriver: chromedriver_74.0.3729.6 up to date
[19:49:59] I/launcher - Running 1 instances of WebDriver
[19:49:59] I/direct - Using ChromeDriver directly...
[19:49:59] E/launcher - session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.15.0-20-generic x86_64

...

E/launcher - Process exited with error code 199

我看到问题出在驱动程序上。我看到过类似的帖子。我试图安装所需的插件。

webdriver-manager update --versions.chrome=74.0.3729.6

我有:

webdriver-manager status
webdriver-manager: using global installed version 12.1.4
[19:49:26] I/status - selenium standalone version available: 3.141.59 [last]
[19:49:26] I/status - chromedriver version available: 74.0.3729.6 [last]
[19:49:26] I/status - geckodriver version available: v0.24.0 [last]
[19:49:26] I/status - android-sdk is not present
[19:49:26] I/status - appium is not present

我已经重新启动了硒服务器。我看到使用了所需的驱动程序。

webdriver-manager: using global installed version 12.1.4
[19:49:33] I/start - java -Djava.security.egd=file:///dev/./urandom -Dwebdriver.chrome.driver=/home/martin/.nvm/versions/node/v10.15.3/lib/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6 -Dwebdriver.gecko.driver=/home/martin/.nvm/versions/node/v10.15.3/lib/node_modules/webdriver-manager/selenium/geckodriver-v0.24.0 -jar /home/martin/.nvm/versions/node/v10.15.3/lib/node_modules/webdriver-manager/selenium/selenium-server-standalone-3.141.59.jar -port 4444

发生相同的错误。我想我需要使用较低的版本。您有什么建议? 问候。

0 个答案:

没有答案