Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-20 Thread Felipe Knorr Kuhn
what kind of redirect is this? meta refresh? On Tue, Nov 16, 2010 at 10:06 AM, dimovich dimov...@gmail.com wrote: It's basically: ie.goto 'page that redirects' ie.link(:id, 'MyLink').click On IE8 the 'click' call will fail because Watir cannot find the link (redirect hasn't finished yet

Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-19 Thread Željko Filipin
On Tue, Nov 16, 2010 at 1:07 PM, dimovich dimov...@gmail.com wrote: On __IE6___ the 'click' call will fail because Watir cannot find the link (redirect hasn't finished yet so this is expected). On IE8 everything works just fine. What happens if you thy that manually? Željko -- Before

Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-17 Thread Željko Filipin
On Tue, Nov 16, 2010 at 6:50 PM, dimovich dimov...@gmail.com wrote: A reboot fixed it Reboot is your friend. :) (Especially on Windows.) Well, that is out of scope of Watir project, it just drives the browser and assumes it is functional. Željko -- Before posting, please read

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-17 Thread Jarmo Pertman
Anyone up to cleaning that page by removing all those complex examples and using new examples with Watir::Wait and Watir::ElementExtensions, eg: Watir::Element#when_present Watir::Wait#until, #while and so on https://github.com/bret/watir/blob/master/commonwatir/lib/watir/wait.rb

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
It's basically: ie.goto 'page that redirects' ie.link(:id, 'MyLink').click On IE8 the 'click' call will fail because Watir cannot find the link (redirect hasn't finished yet so this is expected). On IE8 everything works just fine. On Nov 16, 1:12 pm, Željko Filipin

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
It's basically: ie.goto 'page that redirects' ie.link(:id, 'MyLink').click On IE8 the 'click' call will fail because Watir cannot find the link (redirect hasn't finished yet so this is expected). On IE8 everything works just fine. On Nov 16, 1:12 pm, Željko Filipin

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
Sorry for mistakes, it must be: On __IE6___ the 'click' call will fail because Watir cannot find the link (redirect hasn't finished yet so this is expected). On IE8 everything works just fine. On Nov 16, 2:06 pm, dimovich dimov...@gmail.com wrote: It's basically: ie.goto 'page that

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
If by manually you mean irb then the behaviour stays the same: IE6 - browser reaches page that redirects and Watir returns from goto call without waiting for redirect. IE8 - browser reaches page that redirects and follows the redirect. Watir will return from goto call only after page we have

Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread Charley Baker
I'd add a wait_until on the element, so that you're sure it's available before clicking it. I've not had any problems with redirects with IE6, so not sure why that's happening, but the wait_until should guarantee that the element's there. Charley Baker Lead Developer, Watir, http://watir.com

Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread Željko Filipin
On Tue, Nov 16, 2010 at 4:20 PM, dimovich dimov...@gmail.com wrote: If by manually you mean irb No, I mean by doing it without Watir. Open browser, go to the page with IE6 and see does it redirect. Željko -- Before posting, please read http://watir.com/support. In short: search before you

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
Yes, IE6 redirects just fine. On Nov 16, 5:31 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Nov 16, 2010 at 4:20 PM, dimovich dimov...@gmail.com wrote: If by manually you mean irb No, I mean by doing it without Watir. Open browser, go to the page with IE6 and see does it

Re: [wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread Željko Filipin
On Tue, Nov 16, 2010 at 4:44 PM, dimovich dimov...@gmail.com wrote: Yes, IE6 redirects just fine. Did you try waiting as Charley said? More info: http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Željko -- Before posting, please read http://watir.com/support. In short: search before

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
The thing is that sometimes the page redirects to some of our internal Error Pages and that's ok if the links are missing... We're expecting the exceptions. But adding special logic to handle all those little redirect exceptions for all the pages is too much. I'm better off adding a sleep 30 after

[wtr-general] Re: Watir doesn't wait for redirect to complete on IE6

2010-11-16 Thread dimovich
Ok... I think I figured it out. This wasn't the default IE6 behaviour. Windows Update installed some patches that didn't require a reboot... and IE got to behave this way... A reboot fixed it, but I think this should raise some questions. On Nov 16, 6:32 pm, dimovich dimov...@gmail.com wrote: