I really don't know what part of the code to post - it's pretty sparse. I've had this working in older versions of firefox and in chrome - although currently having chromedriver problems as well there have been no code change that would explain a change to functioning of the tests.
I run the command /usr/share/ruby-rvm/rubies/jruby-1.6.5/bin/jruby -S bundle exec cucumber SITE=http://localhost:3456 --tags @dk --profile default this is where I get the browser Before do browser_type = 'firefox' $browser ||= Watir::Browser.new browser_type.to_sym end I have the following def login_dk unless($browser.url[$SITE]) $browser.goto "#{$SITE}/login?pwd=11901245&uid=10096501" end end Before '@dk' do login_dk if ARGV.join('|').include?('@dk') end the login_dk url actually works. I have a cucumber scenario @dk Scenario: Document display by topid and versid #ARTIKEL TEST Given I am viewing topid "7000401342" with versid "578-1-2009" When I look at the page Then the page should display nicely And the text "Frivillige forlig og lov om kreditaftaler" should be visible which when run returns @dk Scenario: Document display by topid and versid # features/document_display.feature:15 undefined method `url' for nil:NilClass (NoMethodError) /home/vagrant/repositories/karnov/KMPOnline/LegalTests/features/support/env.rb:22:in `login_dk' /home/vagrant/repositories/karnov/KMPOnline/LegalTests/features/support/env.rb:29:in `Before' unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7056) (Selenium::WebDriver::Error::WebDriverError) /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver/firefox/launcher.rb:77:in `connect_until_stable' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver/firefox/launcher.rb:37:in `launch' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in `locked' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver/firefox/launcher.rb:32:in `launch' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver/firefox/bridge.rb:19:in `initialize' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver/common/driver.rb:29:in `for' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/selenium-webdriver-2.5.0/lib/selenium/webdriver.rb:81:in `for' /usr/share/ruby-rvm/gems/jruby-1.6.5/gems/watir-webdriver-0.3.8/lib/watir-webdriver/browser.rb:35:in `initialize' /home/vagrant/repositories/karnov/KMPOnline/LegalTests/features/support/hooks.rb:6:in `Before' Given I am viewing topid "7000401342" with versid "578-1-2009" # features/step_definitions/documents.rb:19 When I look at the page # features/step_definitions/general_navigation.rb:48 Then the page should display nicely # features/step_definitions/documents.rb:25 And the text "Frivillige forlig og lov om kreditaftaler" should be visible # features/step_definitions/general_navigation.rb:102 The code that is pointed to there is /home/vagrant/repositories/karnov/KMPOnline/LegalTests/features/support/hooks.rb:6:in `Before' -> the first bit of code pointed to the bits in /home/vagrant/repositories/karnov/KMPOnline/LegalTests/features/support/env.rb:22:in `login_dk' /home/vagrant/repositories/karnov/KMPOnline/LegalTests/features/support/env.rb:29:in `Before' are the ones shown above. firefox is found in the following manner on my system /usr/bin/firefox - /usr/bin is on my path it is a symbolic link to ../lib/firefox-8.0/firefox.sh at any rate that all seems to work since whenever I run my tests, firefox starts. It just doesn't get automated after that initial start. thanks, Bryan Rasmussen On Wed, Dec 28, 2011 at 3:21 PM, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > On Wed, Dec 28, 2011 at 3:15 PM, bryan rasmussen <rasmussen.br...@gmail.com> > wrote: >> and am still getting that error. > > Please post your code and error message. > > Željko > -- > watir.com/book - author > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com