问题
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