[wtr-general] Timeout when setting a text_field

2011-01-04 Thread manu
Hi all, I am writing a pretty big chunk of text in a form and want to keep the default typing speed in the form to emulate a real user. So when I call: browser.text_field(:name, 'field').set('some very long text here') The operation stops before completion with a timeout. Is there a way I can ove

Re: [wtr-general] Timeout when setting a text_field

2011-01-04 Thread Emmanuel Cecchet
Hi all, I was finally able to catch the stack trace of the timeout (see below). Even when the error occurs, the operation continues and the keystrokes are still sent to the browser. I am not sure how to override the read timeout in protocol.rb, any suggestion? Timeout::Error: execution expir

Re: [wtr-general] Timeout when setting a text_field

2011-01-04 Thread Jari Bakken
This is documented on the WebDriver wiki: http://code.google.com/p/selenium/wiki/RubyBindings Basically, you want to do something like this: client = Selenium::WebDriver::Remote::Http::Default.new client.timeout = 120 # seconds - default is 60 driver = Selenium::WebDriver.for(:firefox, :ht

Re: [wtr-general] Timeout when setting a text_field

2011-01-04 Thread Emmanuel Cecchet
Excellent, this is just what I was looking for. Thanks again for the help manu On 1/4/2011 6:03 PM, Jari Bakken wrote: This is documented on the WebDriver wiki: http://code.google.com/p/selenium/wiki/RubyBindings Basically, you want to do something like this: client = Selenium::WebDriver: