jarib/watir-webdriver — Issue #104: timeout in script, but not in irb
Author: knudmoeller
Created: 2011-11-02 17:47:29+00:00
State: open

I'm getting this timeout error

/opt/local/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill': execution expired (Timeout::Error)

when I run the following script:

----
require "rubygems"
require "watir-webdriver"

b = Watir::Browser.new
b.goto 'http://audiovisual.europarl.europa.eu/Search.aspx'
b.text_field(:id => 'ctl00_PageContent_txtsearchfield').set "*"
b.checkbox(:id => 'ctl00_PageContent_chkVideo').set(TRUE)
b.a(:class => 'pagesearch').click
----

However, when I run the exact same commands from within irb, I do not get a timeout; the page loads just fine. This is constant behaviour, I can reproduce the error at any time.

Any ideas what might cause this?

Thanks,
Knud