--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
watir-genera...@googlegroups.com
I'm running into that same problem myself. I originally
unable to obtain stable firefox connection in 60 seconds with Firefox
8 on Linux.
I just updated all my gems so I have
actionmailer (3.1.3, 3.1.1)
actionpack (3.2.0.rc1, 3.1.3, 3.1.1)
activemodel (3.2.0.rc1, 3.1.3, 3.1.1)
activerecord (3.1.3, 3.1.1)
activerecord-jdbc-adapter (1.2.1, 1.2.0)
activerecord-jdbcsqlite3-adapter (1.2.1, 1.2.0)
activerecord-oracle_enhanced-adapter (1.4.0)
activeresource (3.1.3, 3.1.1)
activesupport (3.2.0.rc1, 3.1.3, 3.1.1)
acts_as_list (0.1.4)
arel (2.2.1)
bouncy-castle-java (1.5.0146.1)
builder (3.0.0)
bundler (1.0.21 ruby)
childprocess (0.2.4, 0.2.3, 0.2.2)
cucumber (1.1.4, 1.0.2)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.2.13, 1.2.9)
ffi (1.0.11 java, 1.0.9 java)
gherkin (2.7.1 java, 2.4.16 java)
hike (1.2.1)
i18n (0.6.0)
jdbc-sqlite3 (3.7.2)
journey (1.0.0.rc3)
jquery-rails (2.0.0, 1.0.16)
jruby-launcher (1.0.9 java java)
jruby-openssl (0.7.4)
json (1.6.4 java, 1.6.1 java, 1.5.3 java)
json_pure (1.6.4, 1.6.3, 1.5.3)
liquid (2.3.0)
mail (2.3.0)
mime-types (1.17.2)
multi_json (1.0.4, 1.0.3)
polyglot (0.3.3)
rack (1.4.0, 1.3.5)
rack-cache (1.1)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.3, 3.1.1)
railties (3.2.0.rc1, 3.1.3, 3.1.1)
rake (0.9.2.2, 0.9.2, 0.8.7)
rdoc (3.12, 3.11)
rsolr (1.0.6, 1.0.3)
rsolr-ext (1.0.3)
rspec (2.7.0, 2.6.0)
rspec-core (2.7.1, 2.6.4)
rspec-expectations (2.7.0, 2.6.0)
rspec-mocks (2.7.0, 2.6.0)
ruby-plsql (0.4.4)
rubyzip (0.9.5, 0.9.4)
sass (3.1.12, 3.1.10)
sass-rails (3.2.2, 3.1.4)
selenium-webdriver (2.15.0, 2.5.0)
sprockets (2.1.2, 2.0.3)
term-ansicolor (1.0.7, 1.0.6)
therubyrhino (1.73.0, 1.72.8)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31, 0.3.30)
uglifier (1.2.1, 1.0.4)
watir-webdriver (0.4.1, 0.3.8, 0.3.2)
will_paginate (3.0.2)
and am still getting that error.
Anything else that could be leading to it.
Thanks,
Bryan Rasmussen
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
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'