Protractor error “WebDriverError: Invalid timeout type specified: ms”

谁都会走 提交于 2021-01-27 21:15:10

问题


With no changes my protractor tests started giving this error:

[14:07:05] E/runner - Unable to start a WebDriver session.
[14:07:05] E/launcher - Error: WebDriverError: Invalid timeout type specified: ms

Appreciate any help with this


回答1:


I had the same issue with Internet Explorer.
Downgrading protractor from 5.1.2 to 5.0.0 worked for me.
(5.1.0, 5.1.1 and 5.1.2 seem to have the bug)

See this bug here:
https://github.com/angular/protractor/issues/4445




回答2:


Find out the selenium standalone version you are using. I had the same problem with selenium stand alone server 3.5.0 and IE driver 3.5.0 (in case this problem is in IE). I downgraded the versions to selenium standalone 3.4.0 and IE driver 3.4.0 and it is working.

To Downgrade follow these steps:

Clean the webdrivers already installed:

webdriver-manager clean

Update the webdriver with specific version:

webdriver-manager update --ie --versions.standalone=3.4.0 --versions.ie=3.4.0

Start webdriver with specific version:

webdriver-manager start --versions.standalone=3.4.0



来源:https://stackoverflow.com/questions/45681507/protractor-error-webdrivererror-invalid-timeout-type-specified-ms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!