Getting error "WebDriverError: Invalid timeout type specified: ms"
Hi
I have not made any changes to my tests but all of a sudden started seeing the below error on the console.
[12:19:49] E/runner - Unable to start a WebDriver session. [12:19:49] E/launcher - Error: WebDriverError: Invalid timeout type specified: ms
Bug report
- Node Version: v6.11.1
- Protractor Version: 5.1.2
- Angular Version:
- Browser(s): IE
- Operating System and Version: Windows 8.1 Pro 64 bit OS
Unfortunately the entire code is inside vpn and cannot bring it outside VPN. Any help in this regard is appreciated.
Same issue here
@robertsmith2 Were you able to successfully run the tests earlier? I was able to, but all of a sudden i see this happening. I restarted my machine and clean installed at several places, but still see this happening. In the other VM machine that i have, i did not touch anything and the tests are running fine there. Not sure what could be the issue here.
@moinuddin14 yeah IE was working a couple days ago. I upgraded from 5.1.1 to 5.1.2 only thing I can think of that changed
@robertsmith2 I have verified with 5.0.0 and with IE driver its working fine. Looks like with 5.1.2 its broken somehow. Protractor team can you please look into this issue. Tried to find within protractor code base from where this error is originating from but couldn't find the trace of this error.
It's working fine for me till 5.0.0, and with 5.1.1 as well 5.1.2 it's throwing the error "WebDriverError: Invalid timeout type specified: ms"
same problem here :-(
Need to dive into it more in detail, but these are the changes between 5.1.1 and 5.1.2
https://github.com/angular/protractor/compare/5.1.1...5.1.2
Same issue here. Node version: 6.11.1 Protractor version: 5.1.2
conf.js
exports.config = {
framework: 'custom',
seleniumAddress: 'http://localhost:4444/wd/hub',
suites:{
LanguageSelectionPopup: 'tests/*.feature'
},
restartBrowserBetweenTests: true,
capabilities: {
browserName: 'internet explorer'
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 360000
}
};
Error:
"C:\Program Files\nodejs\node.exe" "C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\bin\protractor" "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3\plugins\JavaScriptLanguage\helpers\protractor-intellij\lib\protractor-intellij-config.js" "--intellijOriginalConfigFile=C:\Users\Lenovo G50-70\IdeaProjects\com.protractortest.myapp\conf.js"
[18:46:13] I/launcher - Running 1 instances of WebDriver
[18:46:13] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[18:46:25] E/runner - Unable to start a WebDriver session.
[18:46:25] E/launcher - Error: WebDriverError: Invalid timeout type specified: ms
Build info: version: '3.5.0', revision: '8def36e068', time: '2017-08-10T23:00:22.093Z'
System info: host: 'DESKTOP-9AVDLI7', ip: '192.168.2.100', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: unknown
at WebDriverError (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:27:5)
at Object.checkLegacyResponse (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:505:15)
at parseHttpResponse (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:509:13)
at doSend.then.response (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:440:13)
at process._tickCallback (internal/process/next_tick.js:109:7)
From: Task: WebDriver.manage().timeouts().setScriptTimeout(11000)
at WebDriver.schedule (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:816:17)
at Timeouts._scheduleCommand (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:1500:25)
at Timeouts.setScriptTimeout (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:1483:17)
at browser_.ready.browser_.ready.then.then (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\lib\runner.ts:281:49)
at ManagedPromise.invokeCallback_ (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1366:14)
at TaskQueue.execute_ (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2970:14)
at TaskQueue.executeNext_ (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2953:27)
at asyncRun (C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2813:27)
at C:\Users\Lenovo G50-70\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:676:7
at process._tickCallback (internal/process/next_tick.js:109:7)
[18:46:25] E/launcher - Process exited with error code 100
Process finished with exit code 100
Empty test suite.
with protractor 5.0.0 it is working - the bug seems to be introduced with 5.1.0 (if I tested correctly)
5.0.0 works for me locally hopefully works on release agent.
Actually this must be somehow related to the selenium server being used for ie testing - I found out that it was once working for me with version 5.1.2 but with Selenium IEDriverServer Version 3.4.0 - and since that version changed to 3.5.0 it does not work anymore. I try now to install the older version of the server and hope that one is still gonna work with my IE version. 🙏
I got mine working with IEDriver 2.53.1 good luck @bruderol
@robertsmith2 you mean IEDriver 2.53.1 with Protractor: 5.1.2 worked? Or did you used 5.0.0 for this?
I had the same problem in IE. I figured out that selenium standalone server and IE driver got updated to 3.5.0. Try to downgrade the standalone server and IE to 3.4.0. This worked for me.
Just using webdriver-manager update --ie --versions.standalone 3.4.0 --versions.ie 3.4.0 solved the issue for me.
I had the same issue, but I managed it with this "webdriver-manager update --ie --versions.standalone 3.4.0 --versions.ie 3.4.0" command protractor version 5.1.2.
@bruderol, @Roman150 I tried your instruction, but when I run webdriver-manager start the logs start with this:
I/start - java -Dwebdriver.chrome.driver=C:\Users\JeanB\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\chromedriver_2.31.exe -Dwebdriver.ie.driver=C:\Users\JeanB\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\IEDriverServer3.5.1.exe -Dwebdriver.gecko.driver=C:\Users\JeanB\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\geckodriver-v0.18.0.exe -jar C:\Users\JeanB\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.5.2.jar -port 4444
But when I look in the selenium folder I can see that the versions of standalone and ie driver are 3.4.0. Giving me an error when I run Protractor.
What does your log looks like when you start webdriver-manager?
Guys
See here https://github.com/angular/protractor/issues/4451#issuecomment-324120250
@wswebcreation How would you pin the version for a specific webdriver? I have removed and uninstalled webdriver-manager and I cannot seem to downgrade IE driver.
Will check later today, come back to it