Amit,

Suggest you look into the Watir methods
  wait
  wait_until

You can read up on them in the RDoc
   http://wtr.rubyforge.org/rdoc/1.6.5/

At those points in the script where you need to acount
for network timing issues, add a wait/wait_until
command for some HTML element on the page to be at the state
you're expecting.

Of course you can use Ruby's 'sleep' command, but that's much less
dependable, and too often slows down the execution on fast networks.



On Jun 23, 5:04 am, Amit Bobade <[email protected]> wrote:
> Dear All:
>
> I am using Watir for automation scripts. But sometimes the scripts do not
> work properly due to slow internet connection.
> Actually When I was giving demo to my team members then it happened.
>
> Also at fast connection, sometimes the scripts does not get loaded and
> execution gets stopped due to some reasons.
>
> Please could you provide some solutions regarding to the same.  Please tell
> me how to make scripts more effective.
>
> --
> Thanks and Regards,
> Amit

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to