Hi ,
>

can I use the synchronisation statement in the ruby test rather than sleep
statement.

 I am using some similar kind of code as below where the for loop runs with
0.5 secs gap unless the assert gets passed. once passed then it would come
out of the for loop. Any other approach?

Any where in the inbuild watir library can I change the default sync time of
ruby ?


   for counter in 0..20
    begin
     assert($ie.link(:text,name).exists?)
     logPass
     break
    rescue => e
     if counter > 19 then
      handleFail e
      break
     end

         sleep 0.5
    end
   end
  end



>
>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>
> To unsubscribe from this group, send email to watir-general+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

To unsubscribe from this group, send email to 
watir-general+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to