Time and again I have faced issues where the WATIR attach method, that
returns a handle to a popup window, has misbehaved.
Specifically I have noticed this on somewhat slow connections. In Cases
where the pop up windows take some time to get rendered on the client
machine, the attach method
Untested, but this will try to attach every two seconds forever:
def get_popup
begin
ie.attach(:title, My Window)
rescue
sleep 2
get_popup
end
end
##
You could put your counter in there with an exit clause.
On 5/9/07, Dhrubojyoti
Dhrubojyoti Biswas wrote:
I am eager to know if there is a better way to do this?
Use Watir 1.5. This problem is fixed there. You can look at the
repository on openqa if you want details.
Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org