Skip to content

Instantly share code, notes, and snippets.

@titusfortner
Created January 9, 2017 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save titusfortner/91db2faf2a14d9028e579c88946450f5 to your computer and use it in GitHub Desktop.
Save titusfortner/91db2faf2a14d9028e579c88946450f5 to your computer and use it in GitHub Desktop.
Weird Firefox Error
/Users/titusfortner/.rvm/rubies/ruby-2.4.0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/titusfortner/.rvm/gems/ruby-2.4.0/gems/ruby-debug-ide-0.6.1.beta3/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 53397 --host 0.0.0.0 --dispatcher-port 53398 -- /Users/titusfortner/.rvm/gems/ruby-2.4.0/bin/rspec /Users/titusfortner/git/selenium/rb/spec/integration/selenium/webdriver/target_locator_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "TargetLocator should switch to parent frame"
Testing started at 9:15 PM ...
Fast Debugger (ruby-debug-ide 0.6.1.beta3, debase 0.2.2.beta9, file filtering is supported) listens on 0.0.0.0:53397
Running Ruby specs:
browser: firefox
driver: firefox
platform: macosx
native: false
ci:
ruby: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
Run options: include {:full_description=>/TargetLocator\ should\ switch\ to\ parent\ frame/}
Fast Debugger (ruby-debug-ide 0.6.1.beta3, debase 0.2.2.beta9, file filtering is supported) listens on 0.0.0.0:53402
1483931732323 geckodriver INFO Listening on 127.0.0.1:4446
-> POST sessionException `IO::EINPROGRESSWaitWritable' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/socket.rb:1198 - Operation now in progress - connect(2) would block
>>> http://127.0.0.1:4446/session | {"desiredCapabilities":{"browserName":"firefox","browserVersion":null,"platformName":null,"platformVersion":null,"acceptInsecureCerts":false,"pageLoadStrategy":"normal","marionette":true,"timeouts":{},"moz:firefoxOptions":{}}}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"226"}
1483931732581 mozprofile::profile INFO Using profile path /var/folders/px/f7vkwk593ks8tv32dzzzk1lh0000gn/T/rust_mozprofile.CDMAy4pQiJOj
1483931732582 geckodriver::marionette INFO Starting browser /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin
1483931732586 geckodriver::marionette INFO Connecting to Marionette on localhost:53409
1483931733224 addons.xpi WARN Exception running bootstrap method install on shield-recipe-client@mozilla.org: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getBoolPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Applications/FirefoxNightly.app/Contents/Resources/browser/features/shield-recipe-client@mozilla.org.xpi!/bootstrap.js :: this.install :: line 38" data: no] Stack trace: this.install()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Applications/FirefoxNightly.app/Contents/Resources/browser/features/shield-recipe-client@mozilla.org.xpi!/bootstrap.js:38 < callBootstrapMethod()@resource://gre/modules/addons/XPIProvider.jsm:4906 < processFileChanges()@resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:2060 < checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3761 < startup()@resource://gre/modules/addons/XPIProvider.jsm:2794 < callProvider()@resource://gre/modules/AddonManager.jsm:267 < _startProvider()@resource://gre/modules/AddonManager.jsm:973 < startup()@resource://gre/modules/AddonManager.jsm:1155 < startup()@resource://gre/modules/AddonManager.jsm:3124 < observe()@resource://gre/components/addonManager.js:65
1483931733477 Marionette INFO Listening on port 53409
<- {"sessionId":"8e439374-facf-184e-b7eb-5de78ee9f0de","value":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"53.0a1","moz:accessibilityChecks":false,"moz:processID":17280,"moz:profile":"/var/folders/px/f7vkwk593ks8tv32dzzzk1lh0000gn/T/rust_mozprofile.CDMAy4pQiJOj","pageLoadStrategy":"normal","platformName":"darwin","platformVersion":"16.3.0","rotatable":false,"specificationLevel":0,"timeouts":{"implicit":0,"page load":300000,"script":30000}}}
Fast Debugger (ruby-debug-ide 0.6.1.beta3, debase 0.2.2.beta9, file filtering is supported) listens on 0.0.0.0:53440
Exception `LoadError' at /Users/titusfortner/git/selenium/rb/spec/integration/selenium/webdriver/spec_support/rack_server.rb:85 - cannot load such file -- thin
Exception `LoadError' at /Users/titusfortner/git/selenium/rb/spec/integration/selenium/webdriver/spec_support/rack_server.rb:85 - cannot load such file -- mongrel
2017-01-08 21:15:35.331 plugin-container[17281:1667089] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa23b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-01-08 21:15:35.332 plugin-container[17281:1667089] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa603, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
[2017-01-08 21:15:35] INFO WEBrick 1.3.1
[2017-01-08 21:15:35] INFO ruby 2.4.0 (2016-12-24) [x86_64-darwin16]
[2017-01-08 21:15:35] INFO WEBrick::HTTPServer#start: pid=17283 port=8182
Exception `IO::EINPROGRESSWaitWritable' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/socket.rb:1198 - Operation now in progress - connect(2) would block
Exception `Errno::EISCONN' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/socket.rb:1198 - Socket is already connected - connect(2) for 127.0.0.1:8182
Exception `WEBrick::HTTPStatus::EOFError' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/webrick/httpserver.rb:82 - WEBrick::HTTPStatus::EOFError
-> POST session/8e439374-facf-184e-b7eb-5de78ee9f0de/url
>>> http://127.0.0.1:4446/session/8e439374-facf-184e-b7eb-5de78ee9f0de/url | {"url":"http://localhost:8182/iframes.html"}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"44"}
Exception `SocketError' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/webrick/utils.rb:50 - getaddrinfo: nodename nor servname provided, or not known
Exception `SocketError' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/webrick/utils.rb:50 - getaddrinfo: nodename nor servname provided, or not known
<- {}
-> POST session/8e439374-facf-184e-b7eb-5de78ee9f0de/url
>>> http://127.0.0.1:4446/session/8e439374-facf-184e-b7eb-5de78ee9f0de/url | {"url":"http://localhost:8182/iframes.html"}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"44"}
<- {}
-> POST session/8e439374-facf-184e-b7eb-5de78ee9f0de/element
>>> http://127.0.0.1:4446/session/8e439374-facf-184e-b7eb-5de78ee9f0de/element | {"using":"css selector","value":"iframe"}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"41"}
<- {"value":{"element-6066-11e4-a52e-4f735466cecf":"aac55043-695e-4648-bdf9-e2650697ca4f"}}
-> POST session/8e439374-facf-184e-b7eb-5de78ee9f0de/frame
>>> http://127.0.0.1:4446/session/8e439374-facf-184e-b7eb-5de78ee9f0de/frame | {"id":{"element-6066-11e4-a52e-4f735466cecf":"aac55043-695e-4648-bdf9-e2650697ca4f"}}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"85"}
<- {}
-> POST session/8e439374-facf-184e-b7eb-5de78ee9f0de/url
>>> http://127.0.0.1:4446/session/8e439374-facf-184e-b7eb-5de78ee9f0de/url | {"url":"http://localhost:8182/iframes.html"}
> {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"44"}
JavaScript error: chrome://marionette/content/listener.js, line 1056: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebProgress.removeProgressListener]
Exception `Net::ReadTimeout' at /Users/titusfortner/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/protocol.rb:176 - Net::ReadTimeout
driver.navigate.to url_for('iframes.html')
driver.navigate.to url_for('iframes.html')
iframe = driver.find_element(tag_name: 'iframe')
driver.switch_to.frame(iframe)
driver.navigate.to url_for('iframes.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment