I'm able to reproduce the problem within the same test by using the
following chain of events (right now using our webapp):

@ie = IE.new
@ie.goto(someUrl)
@ie.link(...).click
@ie.text_field(:name, "username").set('someName')
@ie.image(:src, /login.gif/).fireEvent("onmouseup")

@ie.close
@ie = IE.new
@ie.goto(someUrl)

@ie.goto(someUrlTwo)  #this call times out
assert_not_nil(/patternToLookFor/.match(@ie.html)

I'll have to verify that I can reproduce the problem using some
publicly accessibly site.

Thanks,
-Dmitri

On 2/10/06, Michael Bolton <[EMAIL PROTECTED]> wrote:
> When you say "fail", what Bad Thing happens?  What Good Thing fails to
> happen?  Do you get an error message?
>
> ---Michael B.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Dolguikh
> Sent: February 10, 2006 10:03 AM
> To: [email protected]
> Subject: [Wtr-general] Goto(url)
>
> Hi list,
>
> I'm finding that using goto on Watir::IE is not reliable: when goto is
> called first time it is *always* successful (provided the url was
> valid of course). However on subsequent calls it may or may not fail.
> I tried adding sleep and Watir::IE.wait calls between goto's without
> consistent results.
>
> In fact, for code like this
>
> @ie.goto(url1)
> @ie.goto(url2)
>
> second goto call is almost guaranteed to fail.
>
>
> Any ideas, anybody?
>
> Thanks,
> -Dmitri
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to