Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

get http error code with Selenium::Remote::Driver

by david2008 (Scribe)
on Jul 09, 2013 at 09:02 UTC ( #1043272=perlquestion: print w/replies, xml ) Need Help??
david2008 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Is it possible to get the http error code and status line with Selenium::Remote::Driver, or is it out of scope like with webdriver ?
http://jimevansmusic.blogspot.co.il/2012/07/webdriver-y-u-no-have-http-status-codes.html

Thanks,
David
  • Comment on get http error code with Selenium::Remote::Driver

Replies are listed 'Best First'.
Re: get http error code with Selenium::Remote::Driver
by Corion (Pope) on Jul 09, 2013 at 09:03 UTC

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

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043272]
Approved by hdb
help
Chatterbox?
[Corion]: Ouch. I just learned something about Chrome - the "version numbers" are not really feature numbers... Chrome 62 still gets new features even though Chrome 64 is out and Chrome 65 is the dev version
[erix]: why ouch? Something to be said for that ,surely?
LanX is a dev version
[marto]: That reminds me, I made some notes somewhere with regard W::M::C, I'll get round to a PR when I've time to flesh it out

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-12-12 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?