Skip to content

Instantly share code, notes, and snippets.

@titusfortner
Created December 15, 2016 20:25
Show Gist options
  • Save titusfortner/2630bc4a6c40d314f8c7d3790ee0dd4f to your computer and use it in GitHub Desktop.
Save titusfortner/2630bc4a6c40d314f8c7d3790ee0dd4f to your computer and use it in GitHub Desktop.
DEBUG output
Tituss-MacBook-Pro:~ titusfortner$ irb
2.3.1 :001 > require 'watir'
=> true
2.3.1 :002 > $DEBUG = true
=> true
2.3.1 :003 > Watir::Browser.new :firefox
Exception `IO::EINPROGRESSWaitWritable' at /Users/titusfortner/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/socket.rb:1207 - Operation now in progress - connect(2) would block
Exception `Errno::ECONNREFUSED' at /Users/titusfortner/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/socket.rb:1207 - Connection refused - connect(2) for 127.0.0.1:4444
["127.0.0.1", 4444]
1481830411818 geckodriver INFO Listening on 127.0.0.1:4444
Exception `IO::EINPROGRESSWaitWritable' at /Users/titusfortner/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/socket.rb:1207 - Operation now in progress - connect(2) would block
Exception `Errno::EISCONN' at /Users/titusfortner/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/socket.rb:1207 - Socket is already connected - connect(2) for 127.0.0.1:4444
-> POST session
>>> http://127.0.0.1:4444/session | {"desiredCapabilities":{"browserName":"firefox","browserVersion":"any","platformName":"any","platformVersion":"any","acceptSslCerts":false,"pageLoadStrategy":"normal","moz:firefoxOptions":{}}}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"192"}
1481830412072 mozprofile::profile INFO Using profile path /var/folders/px/f7vkwk593ks8tv32dzzzk1lh0000gn/T/rust_mozprofile.6Fa3DacFbcEh
1481830412073 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin
1481830412087 geckodriver::marionette INFO Connecting to Marionette on localhost:60246
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
<- {"sessionId":"15d54a03-76dc-2943-b001-af9b86bd6462","value":{"XULappId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","acceptSslCerts":false,"appBuildId":"20161031153904","browserName":"Firefox","browserVersion":"45.5.0","device":"desktop","pageLoadStrategy":"normal","platform":"DARWIN","platformName":"Darwin","platformVersion":"16.1.0","proxy":{},"raisesAccessibilityExceptions":false,"rotatable":false,"specificationLevel":"1","takesElementScreenshot":true,"takesScreenshot":true,"version":"45.5.0"}}
-> GET session/15d54a03-76dc-2943-b001-af9b86bd6462/window
<- {"value":"7"}
-> GET session/15d54a03-76dc-2943-b001-af9b86bd6462/window/handles
<- {"value":["7"]}
-> POST session/15d54a03-76dc-2943-b001-af9b86bd6462/frame
>>> http://127.0.0.1:4444/session/15d54a03-76dc-2943-b001-af9b86bd6462/frame | {"id":null}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"11"}
<- {}
-> GET session/15d54a03-76dc-2943-b001-af9b86bd6462/url
<- {"value":"about:blank"}
-> GET session/15d54a03-76dc-2943-b001-af9b86bd6462/title
<- {"value":""}
=> #<Watir::Browser:0x..fa87f6b2ff22d491e url="about:blank" title="">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment