-
-
Save ivaravko/2016192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ irb -r selenium-webdriver | |
>> require 'net-http-spy' | |
=> true | |
>> Net::HTTP.http_logger_options = {:verbose => true} | |
=> {:verbose=>true} | |
>> driver = Selenium::WebDriver.for :firefox | |
opening connection to 127.0.0.1... | |
opened | |
<- "POST /hub/session HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 193\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: 127.0.0.1:7056\r\n\r\n" | |
<- "{\"desiredCapabilities\":{\"browserName\":\"firefox\",\"version\":\"\",\"platform\":\"ANY\",\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true,\"takesScreenshot\":true,\"nativeEvents\":false,\"rotatable\":false}}" | |
-> "HTTP/1.1 303 See Other\r\n" | |
-> "location: http://127.0.0.1:7056/hub/session/89c144e1-3ca8-2743-85aa-bb07763f41ae\r\n" | |
-> "connection: close\r\n" | |
-> "content-length: 0\r\n" | |
-> "server: httpd.js\r\n" | |
-> "date: Sun, 11 Mar 2012 02:58:32 GMT\r\n" | |
-> "\r\n" | |
reading 0 bytes... | |
-> "" | |
read 0 bytes | |
Conn close | |
opening connection to 127.0.0.1... | |
opened | |
<- "GET /hub/session/89c144e1-3ca8-2743-85aa-bb07763f41ae HTTP/1.1\r\nAccept: application/json\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: 127.0.0.1:7056\r\n\r\n" | |
-> "HTTP/1.1 200 OK\r\n" | |
-> "content-type: application/json; charset=UTF-8\r\n" | |
-> "connection: close\r\n" | |
-> "content-length: 285\r\n" | |
-> "server: httpd.js\r\n" | |
-> "date: Sun, 11 Mar 2012 02:58:32 GMT\r\n" | |
-> "\r\n" | |
reading 285 bytes... | |
-> "" | |
-> "{\"name\":\"getSessionCapabilities\",\"sessionId\":\"89c144e1-3ca8-2743-85aa-bb07763f41ae\",\"status\":0,\"value\":{\"cssSelectorsEnabled\":true,\"browserName\":\"firefox\",\"handlesAlerts\":true,\"javascriptEnabled\":true,\"nativeEvents\":false,\"platform\":\"Darwin\",\"takesScreenshot\":true,\"version\":\"10.0.2\"}}" | |
read 285 bytes | |
Conn close | |
=> #<Selenium::WebDriver::Driver:0x706eead6312ab96a browser=:firefox> | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment