Does adding @ie.wait between the two calls to @ie.goto fix the problem? (Do i hear an echo?)



On 2/10/06, Dmitri Dolguikh <[EMAIL PROTECTED]> wrote:
Sorry, I should have clarified that.

'times out' means that 'goto' call doesn't return for a couple of
minutes; When it does eventually, the browser stays on the page it was
prior to the call. Also, as I mentioned before the location bar
doesn't get updated with the url passed into goto method.

-Dmitri

On 2/10/06, Bret Pettichord <[EMAIL PROTECTED]> wrote:
> What does 'times out' mean? Does the script hang at that point? Do you get a
> timeout error?
>
> Does adding @ie.wait between the two calls to @ie.goto fix the problem?
>
> Bret
>
> On 2/10/06, Dmitri Dolguikh < [EMAIL PROTECTED]> wrote:
> >
> > 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
> >
>
>
> _______________________________________________
> 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