[Wtr-general] Ataaching to windows on slow network connections

2007-05-09 Thread Dhrubojyoti Biswas
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

Re: [Wtr-general] Ataaching to windows on slow network connections

2007-05-09 Thread Chris McMahon
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

Re: [Wtr-general] Ataaching to windows on slow network connections

2007-05-09 Thread Bret Pettichord
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