Hmmm,

I may have spoken too soon about seeing the page's refresh status
following the click.

It appears that my page does many refreshes / loads that report
themselves as done during the processing, so watir cuts out after the
first done is complete.

I may just very well be stuck hardcoding a wait time........

Yuck code, but I can't see any other way.

On Dec 16, 4:00 pm, bender25 <[email protected]> wrote:
> Hi all,
>
> The following problem applies to my watir 1.6.5 installation running
> on Windows XP Professional
>
> I have a web page to test which contains some code that looks like the
> following:
>
> <iframe src="myFrame.html">
>   ..........
> </frame>
>
> myFrame.html contains a series of controls, including a save button -
> which is a link.
>
> On clicking the save button, a lengthy process is carried out that
> usually takes 5 min to complete.
>
> I am having trouble getting my watir test case to wait until the
> processing comes to an end.
>
> I have scripted the save button click and wait in my test as follows:
>
> $browser.frame(:id, "frameId").link(:id, "saveButton").click()
> $browser.wait()
>
> However find that the $browser.wait() does not wait for the data
> processing to complete, the test pretty much completes right after
> clicking the save button.
>
> I can say that the browser shows that the page is being refreshed /
> loaded for the full processing period - if that is of any relevance.
>
> And I'm guessing that the $browser.wait() is not working due to the
> click event taking place in an area outside the scope of the current
> page.
>
> I am in the process of trying out the use of $browser.wait(420) to
> force the test to wait for 7 minutes, however would rather not have to
> use a set number of seconds to wait if there is a better way to
> conduct this test.
>
> Thanks for any input to this matter.

-- 
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

Reply via email to