Watir has built in synchronization. Most Watir methods will not return 
until the page has finished loading. This is invisible and automatic and 
handles 95% of the synchronization needs of Web Apps.

When Watir was first released, there were browser drivers in several 
different languages. The most popular was Samie, in Perl. But Watir was 
the first to include this automatic synchronization mechanism. I suspect 
that this was key to its success. Because it is invisible and automatic, 
most people don't give it much thought.

A little history lesson for you.

Bret


[email protected] wrote:
> In comercial tools, like QuickTest Pro, there are API for
> synchronization points.
> You may wait for a certain time while the page is downloded before
> performing any operations on it.
> The API ranges from simple wait() to more sophisticated functions
> waiting for specific object properties.
>
> Do we have analogs for synchronization points in Watir?
> Do we need to create a loop checking if the web page contains some
> text to guarantee it downloaded?
>
> So far I did not insert any synchronization points in the scripts and
> everything worked fine.
> >
>   


-- 
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Austin March 25-26, Portland/Beaverton April 16-17
www.watircraft.com/training


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