[Wtr-general] IE.GoTo - Can You Set A Timeout or an Idle?
Paul Rogers
paul.rogers at shaw.ca
Fri Oct 13 19:24:42 EDT 2006
One part of the argument is that we want to be able to control how long we
wait outside of watir, ie wrapping the call in a timeout block.
That works fine, but you need to put it everywhere.
Adding the timeout in the wait method, stops you having to do that. And, if
we are smart, we can switch off the timeout in wait, eg:
ie.max_timeout = 10 # seconds
ie.goto(http://longloadingpage.com)
# => raises NavigationTimeoutException or what ever
ie.max_timeout = nil # seconds
ie.goto(http://longloadingpage.com)
# => waits for ever
and this can be used in other places too:
ie.max_timeout = xxxx # seconds
ie.button(:id , /foo/).click
=> obeys the max_timeout
I think that is a preferable solution to having to do
timeout(10) do
ie.goto(..)
end
I do wonder why I never added that code though.......
Paul
----- Original Message -----
From: "Bret Pettichord" <bret at pettichord.com>
To: <wtr-general at rubyforge.org>
Sent: Friday, October 13, 2006 4:19 PM
Subject: Re: [Wtr-general] IE.GoTo - Can You Set A Timeout or an Idle?
> This is in Jira:
> http://jira.openqa.org/browse/WTR-46
>
> Please add comments to this ticket if you feel strongly about this issue.
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
More information about the Wtr-general
mailing list