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

2010-11-16 Thread dimovich
Greetings All,

On IE6 when requesting a page that redirects Watir will return
imediately. On IE8 Watir will wait for redirect to complete. Did
anybody else bump into this?

Thanks.

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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 zeljko.fili...@wa-research.ch
wrote:
 On Tue, Nov 16, 2010 at 12:05 PM, dimovich dimov...@gmail.com wrote:
  On IE6 when requesting a page that redirects Watir will return
  imediately. On IE8 Watir will wait for redirect to complete. Did
  anybody else bump into this?

 Please show us the code.

 So, it works manually, but not from a Watir script?

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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 zeljko.fili...@wa-research.ch
wrote:
 On Tue, Nov 16, 2010 at 12:05 PM, dimovich dimov...@gmail.com wrote:
  On IE6 when requesting a page that redirects Watir will return
  imediately. On IE8 Watir will wait for redirect to complete. Did
  anybody else bump into this?

 Please show us the code.

 So, it works manually, but not from a Watir script?

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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 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 zeljko.fili...@wa-research.ch
 wrote:

  On Tue, Nov 16, 2010 at 12:05 PM, dimovich dimov...@gmail.com wrote:
   On IE6 when requesting a page that redirects Watir will return
   imediately. On IE8 Watir will wait for redirect to complete. Did
   anybody else bump into this?

  Please show us the code.

  So, it works manually, but not from a Watir script?

  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them



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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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 been
redirected to has loaded.

I'm talking about 302 redirect.


On Nov 16, 3:51 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 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 posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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 redirect.

 Željko

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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 goto and hope that it redirects in the
meantime :). I will investigate further this issue and see if I find
anything useful.


On Nov 16, 5:46 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 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 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[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:
 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 goto and hope that it redirects in the
 meantime :). I will investigate further this issue and see if I find
 anything useful.

 On Nov 16, 5:46 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:

  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 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Hover link which doesn't have onmouse* event handler

2010-11-05 Thread dimovich
Found the solution:

Watir.autoit.MouseMove(my_link.document.getBoundingClientRect.left.to_i
+1,my_link.document.getBoundingClientRect.top+1)


On Nov 5, 3:41 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Fri, Nov 5, 2010 at 2:34 PM, dimovich dimov...@gmail.com wrote:
  But how do I call this 'mouseover'? Simply calling
  fire_event('mouseover') doesn't work.

 Maybe you should fire all events listed, in the sequence they appear. The
 best thing would be to ask a developer what event(s) should be fired.

 Željko

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com