in reply to get http error code with Selenium::Remote::Driver

The HTTP status code is outside of the scope of Selenium. So no interface to Selenium can easily/conveniently get at that status code.

  • Comment on Re: get http error code with Selenium::Remote::Driver

Replies are listed 'Best First'.
Re^2: get http error code with Selenium::Remote::Driver
by david2008 (Scribe) on Jul 09, 2013 at 09:36 UTC
    Is there a hard way ? :-)

      I hacked Ghostdriver for PhantomJS to return the HTTP status code, and then expanded Selenium::Remote::Driver to ask for that status code. It's a relatively small change, but I haven't spent enough time with the code to release it yet, sorry.