Skip to content

Instantly share code, notes, and snippets.

@suhrawardi
Created August 4, 2010 17:08
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 suhrawardi/508455 to your computer and use it in GitHub Desktop.
Save suhrawardi/508455 to your computer and use it in GitHub Desktop.
running features in firefox
rm: cannot remove `images/*.png': No such file or directory
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- capybara
Exception `NameError' at /var/lib/gems/1.8/gems/rspec-1.3.0/lib/spec/dsl/main.rb:30 - uninitialized constant Spec::DSL::Main::IRB
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- Win32API
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- Win32API
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- yajl/json_gem
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- yajl/json_gem
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- json/ext/parser
Using c extension for JSON.
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No such file or directory - /tmp/unzip20100804-8973-8xizz2/platform/WINNT_x86-msvc
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No such file or directory -
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /tmp
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /tmp/unzip20100804-8973-8xizz2
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1203 - No such file or directory - /tmp/webdriver-profile20100804-8973-au84dn/extensions/fxdriver@googlecode.com
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1203 - No such file or directory - /tmp/webdriver-profile20100804-8973-au84dn/extensions/fxdriver@googlecode.com
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1298 - No such file or directory - /tmp/webdriver-profile20100804-8973-au84dn/extensions/fxdriver@googlecode.com
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1421 - No such file or directory - /tmp/webdriver-profile20100804-8973-au84dn/extensions/fxdriver@googlecode.com
{"app.update.enabled"=>"false"}
{"browser.link.open_newwindow"=>"2"}
{"browser.shell.checkDefaultBrowser"=>"false"}
{"extensions.update.enabled"=>"false"}
{"security.warn_entering_secure.show_once"=>"false"}
{"webdriver_assume_untrusted_issuer"=>true}
{"startup.homepage_welcome_url"=>"\"about:blank\""}
{"browser.tabs.warnOnClose"=>"false"}
{"extensions.update.notifyUser"=>"false"}
{"webdriver_firefox_port"=>7055}
{"security.warn_entering_weak.show_once"=>"false"}
{"browser.download.manager.showWhenStarting"=>"false"}
{"network.manage-offline-status"=>"false"}
{"security.warn_submit_insecure"=>"false"}
{"security.warn_entering_weak"=>"false"}
{"security.warn_leaving_secure"=>"false"}
{"security.warn_viewing_mixed.show_once"=>"false"}
{"webdriver_accept_untrusted_certs"=>true}
{"browser.safebrowsing.enabled"=>"false"}
{"security.warn_leaving_secure.show_once"=>"false"}
{"signon.rememberSignons"=>"false"}
{"javascript.options.showInConsole"=>"true"}
{"app.update.auto"=>"false"}
{"browser.EULA.3.accepted"=>"true"}
{"browser.tabs.warnOnOpen"=>"false"}
{"dom.disable_open_during_load"=>"false"}
{"security.warn_entering_secure"=>"false"}
{"browser.startup.homepage"=>"\"about:blank\""}
{"browser.EULA.override"=>"true"}
{"browser.dom.window.dump.enabled"=>"true"}
{"browser.startup.page"=>"0"}
{"browser.link.open_external"=>"2"}
{"browser.search.update"=>"false"}
{"browser.sessionstore.resume_from_crash"=>"false"}
{"security.warn_viewing_mixed"=>"false"}
{"webdriver_enable_native_events"=>false}
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7055
-> POST session
>>> {"desiredCapabilities":{"javascriptEnabled":true,"version":"","browserName":"firefox","platform":"ANY"}}
> {"Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"104", "Accept"=>"application/json"}
<- {"name":"getSessionCapabilities","sessionId":"af950e5b-347b-4910-90f4-fe3541d7648e","status":0,"value":{"browserName":"firefox","version":"3.6.8","javascriptEnabled":true,"platform":"Linux","cssSelectorsEnabled":true,"takesScreenshot":true}}
Exception `NameError' at /var/lib/gems/1.8/gems/cucumber-0.8.5/bin/../lib/cucumber/constantize.rb:12 - uninitialized constant Cucumber::Formatter::Html
Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- syntax/convertors/html
Exception `Errno::EADDRINUSE' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:126 - Address already in use - bind(2)
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No such file or directory - /tmp/unzip20100804-8973-31gpe6/platform/WINNT_x86-msvc
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:243 - No such file or directory -
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /tmp
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /tmp/unzip20100804-8973-31gpe6
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1203 - No such file or directory - /tmp/webdriver-profile20100804-8973-i66aih/extensions/fxdriver@googlecode.com
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1203 - No such file or directory - /tmp/webdriver-profile20100804-8973-i66aih/extensions/fxdriver@googlecode.com
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1298 - No such file or directory - /tmp/webdriver-profile20100804-8973-i66aih/extensions/fxdriver@googlecode.com
Exception `Errno::ENOENT' at /usr/lib/ruby/1.8/fileutils.rb:1421 - No such file or directory - /tmp/webdriver-profile20100804-8973-i66aih/extensions/fxdriver@googlecode.com
{"app.update.enabled"=>"false"}
{"browser.link.open_newwindow"=>"2"}
{"browser.shell.checkDefaultBrowser"=>"false"}
{"extensions.update.enabled"=>"false"}
{"security.warn_entering_secure.show_once"=>"false"}
{"webdriver_assume_untrusted_issuer"=>true}
{"startup.homepage_welcome_url"=>"\"about:blank\""}
{"browser.tabs.warnOnClose"=>"false"}
{"extensions.update.notifyUser"=>"false"}
{"webdriver_firefox_port"=>7056}
{"security.warn_entering_weak.show_once"=>"false"}
{"browser.download.manager.showWhenStarting"=>"false"}
{"network.manage-offline-status"=>"false"}
{"security.warn_submit_insecure"=>"false"}
{"security.warn_entering_weak"=>"false"}
{"security.warn_leaving_secure"=>"false"}
{"security.warn_viewing_mixed.show_once"=>"false"}
{"webdriver_accept_untrusted_certs"=>true}
{"browser.safebrowsing.enabled"=>"false"}
{"security.warn_leaving_secure.show_once"=>"false"}
{"signon.rememberSignons"=>"false"}
{"javascript.options.showInConsole"=>"true"}
{"app.update.auto"=>"false"}
{"browser.EULA.3.accepted"=>"true"}
{"browser.tabs.warnOnOpen"=>"false"}
{"dom.disable_open_during_load"=>"false"}
{"security.warn_entering_secure"=>"false"}
{"browser.startup.homepage"=>"\"about:blank\""}
{"browser.EULA.override"=>"true"}
{"browser.dom.window.dump.enabled"=>"true"}
{"browser.startup.page"=>"0"}
{"browser.link.open_external"=>"2"}
{"browser.search.update"=>"false"}
{"browser.sessionstore.resume_from_crash"=>"false"}
{"security.warn_viewing_mixed"=>"false"}
{"webdriver_enable_native_events"=>false}
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
Exception `Errno::ECONNREFUSED' at /var/lib/gems/1.8/gems/selenium-webdriver-0.0.27/lib/selenium/webdriver/firefox/launcher.rb:118 - Connection refused - connect(2)
Connection refused - connect(2) for 127.0.0.1:7056
-> POST session
>>> {"desiredCapabilities":{"javascriptEnabled":true,"version":"","browserName":"firefox","platform":"ANY"}}
> {"Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"104", "Accept"=>"application/json"}
<- {"name":"getSessionCapabilities","sessionId":"3152edf5-a0ea-4ecc-82f0-abb811fc051d","status":0,"value":{"browserName":"firefox","version":"3.6.8","javascriptEnabled":true,"platform":"Linux","cssSelectorsEnabled":true,"takesScreenshot":true}}
-> POST session/3152edf5-a0ea-4ecc-82f0-abb811fc051d/url
>>> {"url":"http://en.wikipedia.org/wiki/Special:Search"}
> {"Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"53", "Accept"=>"application/json"}
<- {"name":"get","sessionId":"3152edf5-a0ea-4ecc-82f0-abb811fc051d","status":0,"value":""}
-> POST session/3152edf5-a0ea-4ecc-82f0-abb811fc051d/elements
>>> {"value":"/descendant-or-self::*[contains(normalize-space(.),'Search')]","using":"xpath"}
> {"Content-Type"=>"application/json; charset=utf-8", "Content-Length"=>"89", "Accept"=>"application/json"}
<- {"name":"findElements","sessionId":"3152edf5-a0ea-4ecc-82f0-abb811fc051d","status":0,"value":[{"ELEMENT":"{7e409375-4e73-4100-a4c5-b167d169ae42}"},{"ELEMENT":"{c9f1bbd8-3a38-4e2a-87b3-e3df564f3717}"},{"ELEMENT":"{e4682a27-f9ad-4616-877a-d9bd751cc4ad}"},{"ELEMENT":"{a7472cf9-b599-454d-967f-d0af812069e5}"},{"ELEMENT":"{fb9f564c-4cef-41d9-9f06-63a1043522bf}"},{"ELEMENT":"{7a849a1c-62c8-423d-b71c-8ba93f7aca0e}"},{"ELEMENT":"{1772355e-bc36-44d7-a089-83f9ca199c2d}"},{"ELEMENT":"{f1cee6a0-0443-4211-91b6-dcd66c1dc286}"},{"ELEMENT":"{6595ab64-094a-482d-8ab1-90ace41ab9ae}"},{"ELEMENT":"{30252797-5871-48aa-8170-e98436d4f9ae}"},{"ELEMENT":"{526e182f-7e6e-4628-866c-baa56ef92767}"},{"ELEMENT":"{cd8bc67b-9a2e-467e-8c52-0bac56b29349}"},{"ELEMENT":"{f6039f80-6298-443a-ad91-e154ac7539a6}"},{"ELEMENT":"{106a4018-cf21-4c0b-b845-3835c2b17bef}"},{"ELEMENT":"{596950f4-a0d9-4820-8a9e-59eac9c22556}"},{"ELEMENT":"{f98d974c-93da-4aa9-8275-9d9365953917}"},{"ELEMENT":"{e0641ddc-c55b-42e4-845b-d4f03367713a}"},{"ELEMENT":"{b319a4a4-7506-4e30-bade-b84644e8c9dd}"},{"ELEMENT":"{5c35ea85-3428-44ed-8390-662ea26069af}"}]}
Attempting to make a screenshot
Ok !
-> DELETE session/3152edf5-a0ea-4ecc-82f0-abb811fc051d/cookie
<- {"name":"deleteAllCookies","sessionId":"3152edf5-a0ea-4ecc-82f0-abb811fc051d","status":0,"value":""}
-> DELETE session/3152edf5-a0ea-4ecc-82f0-abb811fc051d
<- {"name":"quit","sessionId":"3152edf5-a0ea-4ecc-82f0-abb811fc051d","status":0,"value":""}
wait_nonblock(5) -> #<Selenium::WebDriver::ChildProcess:0x7f91793202f0>
!!! error running onStopped callback: TypeError: callback is not a function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment