Obscure error after selenium jar updated
I use the included install script for the standalone selenium server and chromedriver. Recently this changed the version of selenium to selenium-server-standalone-2.37.0.jar (35 => 37).
In my config I use this:
seleniumServerJar: './selenium/selenium-server-standalone-2.37.0.jar',
seleniumPort: null,
chromeDriver: './selenium/chromedriver',
1 improvement and 1 question:
If the selenium server is not found you get an obscure error. Not something like check the seleniumServerJar path.
Running "protractor:e2e" (protractor) task
Starting selenium standalone server...
C:\Projects\Rijksmuseum.PaintSampleApp\src\client\node_modules\protractor\node_m
odules\selenium-webdriver\lib\webdriver\promise.js:1542
throw error;
^
Error: Server exited with 1
at Error (<anonymous>)
at ChildProcess.onServerExit (C:\Projects\Rijksmuseum.PaintSampleApp\src\cli
ent\node_modules\protractor\node_modules\selenium-webdriver\remote\index.js:193:
11)
at ChildProcess.g (events.js:175:14)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:789:12)
>>
Fatal error: protractor exited with code: 8
Q: And how to configure protractor config so it won't fail like this on version 38? I tried a wildcard but that didn't work.
I'm using selenium 2.37 and it is working fine here. Did you update the chromedriver as well? What chrome browser version are you using?
I'm sorry. You misunderstood. 2.37 is working fine for me. Only it suddenly updates and the config is pointing to the .jar with a full file name. So when the next version (2.38) comes out it will break again. And the error you then get is kinda vague so its hard to track down why it breaks.
Thanks for the fix! :+1: