Thread.new {
while
sleep(60)
first_url = browser.url
sleep(60)
second_url = browser.url
if (first_url == second_url )
browser.refresh
end
end
}
On Nov 25, 11:03 pm, Moochie <[EMAIL PROTECTED]> wrote:
> Like this?
>
> http://blog.headius.com/2008/02/rubys-threadraise-threadkill-timeoutr...
>
> On Nov 25, 3:57 pm, Moochie <[EMAIL PROTECTED]> wrote:
>
> > How did you create a separate thread?
>
> > Thanks,
>
> > Darin
>
> > On Nov 25, 1:37 pm, JArkelen <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have the same issue on our website.
> > > What I have done is to activate a separate thread which gets the url
> > > of the page, then waits for 60 seconds and gets the url of the page
> > > again. If the url's are the same (the same page is still loading), it
> > > performs a browser.refresh
> > > Not the prettiest way of solving this, but the problem is that
> > > normally the page has to be loaded fully to for watir to continue with
> > > the next line of code.
>
> > > Cheers,
> > > John
>
> > > On Nov 25, 3:50 pm, Moochie <[EMAIL PROTECTED]> wrote:
>
> > > > Occasionally I have a page that doesn’t fully load successfully.
> > > > (sometime it waits for a image to be loaded that never seems to get
> > > > loaded)
>
> > > > I guessing this is a development issue, but I would like to create a
> > > > way to by pass this so I can continue running the test case.
>
> > > > My goal is continues automation, but it difficult when these types of
> > > > error exist.
>
> > > > Does anyone know a way to get around this issue? Maybe disable the
> > > > page load wait method?- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---