1

I'm using mocha, webdriverio, phantomjs Trying to find a way why Selenium is failing in random cases (50% its ok, 50% breaks in different tests with the same code).

The error is

Uncaught RuntimeError
(UnknownError:13) An unknown server-side error occurred while processing the command.
Problem: POST /session//url
Build info: version: '2.42.0', revision: '5e82430', time: '2014-05-22 19:00:03'
System info: host: 'example.com', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.20', java.version: '1.7.1'
Driver info: driver.version: unknown

In fact driver info is EventFiringWebDriver and sometimes it doesn't shown.

Looked through the internet and can't find any solutions. Tests are asynchronus, but 1 to 1 as in the example, the total ammount is about 200, timeout is made really big, it's not a problem.

Stan E
  • 3,396
  • 20
  • 31
  • the only thing that could be seen here is - there is no session POST /session//url, but why.. – Stan E Oct 22 '14 at 07:44
  • seems that the session id got reseted. That happens when you call the `end` command and execute more selenium commands afterwards. Make sure that you only call `end` once at the end of your tests – ChristianB Oct 26 '14 at 22:18
  • In fact only a bit after I found that the problem was with problems of Ghostdriver, that will be fixed in the upcoming major release. – Stan E Apr 02 '15 at 15:06

1 Answers1

0

The issue is pretty old and could be found here https://github.com/detro/ghostdriver/issues/140

Could be partly fixed with this http://matejtymes.blogspot.co.uk/2014/10/webdriver-fix-for-unreachablebrowserexc.html but you need to rebuild selenium from sources (not so difficult :))

Stan E
  • 3,396
  • 20
  • 31