protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Obscure error after selenium jar updated

Open Guuz opened this issue 13 years ago • 3 comments

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.

Guuz avatar Nov 15 '13 08:11 Guuz

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?

vipper avatar Nov 15 '13 18:11 vipper

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.

Guuz avatar Nov 15 '13 18:11 Guuz

Thanks for the fix! :+1:

Guuz avatar Nov 19 '13 07:11 Guuz