On Monday, April 8, 2013 12:00:07 PM UTC-7, Dan wrote:

> I think you're approaching this the wrong way.  If you're navigating to a 
> new page after the click, then there's not really anything you have to do 
> to force it to wait, unless you're dealing with some javascript after the 
> page has loaded.  What it looks like you're running into is a really long 
> page load, and that the selenium client is timing out.  Interestingly 
> enough Chuck posted this question and the solution is on stackoverflow :). 
>  You're probably going to want to get to the bottom of why it's taking a 
> web page more than 5 minutes to load however.
>
>
> http://stackoverflow.com/questions/9014121/how-do-i-change-the-page-load-timeouts-in-watir-webdriver-timeout-in-click-met
>

I didn't post that, I just edited the guys post, Changing the title to be 
clearer what the problem was so it would be easier for someone with a 
similar issue to find the question (also to get better attention form 
experts on SO)   looks like that worked since you found it ;-)  

great thing about SO, once you get some rep, even if you don't know the 
answer, you can help by editing poorly worded or formatted posts to make it 
easier or more likely to get the poster an answer. 

--Chuck

>
>
> On Monday, April 8, 2013 2:45:16 PM UTC-4, [email protected] wrote:
>>
>> I forgot ... the 'Load Form' button doesn;t get hidden by a javascript. 
>> It just dissapears because the browser moves to a new URL, the one that 
>> contains the actual form.
>> Thanks,
>> Fabian
>>
>> El lunes, 8 de abril de 2013 15:23:50 UTC-3, [email protected]ó:
>>>
>>> Here you go:
>>>
>>> C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill': 
>>> Timeout::Error (Timeout::Error)
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:2562:in 
>>> `read_status_line'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1319:in `block in 
>>> transport_request'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1316:in 
>>> `transport_request'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1293:in `request'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1286:in `block in 
>>> request'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:745:in `start'
>>>         from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1284:in `request'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/remote/http/default.rb:83:in
>>>  
>>> `response_for'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/remote/http/default.rb:39:in
>>>  
>>> `request'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/remote/http/common.rb:40:in
>>>  
>>> `call'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/remote/bridge.rb:615:in
>>>  
>>> `raw_execute'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/remote/bridge.rb:593:in
>>>  
>>> `execute'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/remote/bridge.rb:358:in
>>>  
>>> `clickElement'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.30.0/lib/selenium/webdriver/common/element.rb:54:in
>>>  
>>> `click'
>>>         from 
>>> C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/elements/element.rb:131:in
>>>  
>>> `click'
>>>         from C:/Users/sg0894301/SaaS 
>>> Projects/iescripts/security/unixfunc.rb:12:in `loadForm'
>>>         from C:/Users/sg0894301/SaaS Projects/iescripts/unixfunc.rb:6:in 
>>> `<main>
>>>
>>>
>>> El lunes, 8 de abril de 2013 14:49:07 UTC-3, Chuck van der Linden 
>>> escribió:
>>>>
>>>> On Monday, April 8, 2013 10:25:22 AM UTC-7, [email protected] wrote:
>>>>
>>>>> what's a stacktrace? :)
>>>>>
>>>>
>>>> http://en.wikipedia.org/wiki/Stack_trace
>>>>
>>>> in other words the error you get, and all the lines below it that show 
>>>> what lines of code were being executed at the time the error occured
>>>>  
>>>>
>>>>>
>>>>> El lunes, 8 de abril de 2013 13:50:41 UTC-3, Dan escribió:
>>>>>>
>>>>>> Hi Fabian, 
>>>>>>
>>>>>> It's a little unclear what the expectation/flow is after you click 
>>>>>> the 'Load Form' button.  That button is hidden or removed by some 
>>>>>> javascript?  It's possible that you're running into the http timeout as 
>>>>>> opposed to a timeout for one of the wait methods.  I think what would 
>>>>>> help 
>>>>>> is to see the stacktrace that you get when you hit the timeout.
>>>>>>
>>>>>> On Monday, April 8, 2013 11:55:15 AM UTC-4, [email protected]:
>>>>>>>
>>>>>>> Hi Chuck,
>>>>>>>
>>>>>>> It worked for a bit, but because the website was responding faster. 
>>>>>>> Now it started to happen again and it doesn't seem to care how much 
>>>>>>> time I 
>>>>>>> put  for the timeout:
>>>>>>>
>>>>>>> browser.button(:value => 'Load 
>>>>>>> Form').wait_while_present(timeout=5600)
>>>>>>>
>>>>>>> Same error ...
>>>>>>> fabian
>>>>>>>
>>>>>>> El jueves, 4 de abril de 2013 21:49:30 UTC-3, Chuck van der Linden 
>>>>>>> escribió:
>>>>>>>>
>>>>>>>> On Tuesday, April 2, 2013 7:35:42 AM UTC-7, [email protected]:
>>>>>>>>
>>>>>>>>> Hi Chuck,
>>>>>>>>>
>>>>>>>>> Thanks for the detailed explanation and suggestion. I'll give it 
>>>>>>>>>  a try.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Fabian
>>>>>>>>>
>>>>>>>>
>>>>>>>> Did that help or are you still stuck?
>>>>>>>>
>>>>>>>>  
>>>>>>>>
>>>>>>>>>
>>>>>>>>> El miércoles, 27 de marzo de 2013 11:13:57 UTC-3, 
>>>>>>>>> [email protected] escribió:
>>>>>>>>>>
>>>>>>>>>> Hi Folks,
>>>>>>>>>>
>>>>>>>>>> The title pretty much says it all. After I click a button to load 
>>>>>>>>>> a form I get the above error. My code:
>>>>>>>>>>
>>>>>>>>>> browser = Watir::Browser.new :ie
>>>>>>>>>> browser.driver.manage.timeouts.implicit_wait = 360
>>>>>>>>>> browser.goto 'http://myform.html'
>>>>>>>>>> browser.text_field(:name => 'EmpNumber').set empnum
>>>>>>>>>> browser.text_field(:name => 'LastName').set lastName
>>>>>>>>>> browser.button(:value => 'Load Form').click
>>>>>>>>>> browser.button(:value => 'Load Form').wait_while_present
>>>>>>>>>>
>>>>>>>>>> This still timesout before 6 minutes ... So I don;t know what I'm 
>>>>>>>>>> doing wrong.
>>>>>>>>>>
>>>>>>>>>> Before you ask, yes, I've googled and searched this list and 
>>>>>>>>>> stack overflow was well :)
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Fabian
>>>>>>>>>>
>>>>>>>>>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to