Re: [wtr-general] synchronisation in ruby
Hi, I've gone through the below link http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir but it says that sleep 1 until ie.text.include? new results are loaded This code will keep sleeping until the text new results are loaded appears on the page. However, you may not want to wait forever. Using the following code will wait; for the text new results are loaded to appear on the page *OR* 60 seconds, whichever comes first. wait_until {ie.text.include? new results are loaded} just need to know where in the watir library this 60 seconds has been mentioned so that I can change it to the 120 secs and it would be applicable to globally for wait_until method whereever it is called Thanks Arihan On Fri, Apr 9, 2010 at 12:24 PM, arihan sinha arihan.si...@googlemail.comwrote: I am using wait_until and its working fine and it seems the default value is 60 secs. I mean it waits for 60 secs . If it doesnt find then status is fail. but if I want to change that to say 120 secs ( because in our apps few cases it takes more than 60 secs) then where i need to change. there must be something in the library file where we can change. anyone can suggest pls Thanks Arihan On Mon, Mar 29, 2010 at 3:24 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 29, 2010 at 4:22 PM, arihan sinha arihan.si...@googlemail.com wrote: can I use the synchronisation statement in the ruby test rather than sleep statement. Did you read this? http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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.comwatir-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, reply using remove me as the subject.
Re: [wtr-general] synchronisation in ruby
I am using wait_until and its working fine and it seems the default value is 60 secs. I mean it waits for 60 secs . If it doesnt find then status is fail. but if I want to change that to say 120 secs ( because in our apps few cases it takes more than 60 secs) then where i need to change. there must be something in the library file where we can change. anyone can suggest pls Thanks Arihan On Mon, Mar 29, 2010 at 3:24 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Mon, Mar 29, 2010 at 4:22 PM, arihan sinha arihan.si...@googlemail.com wrote: can I use the synchronisation statement in the ruby test rather than sleep statement. Did you read this? http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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.comwatir-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, reply using remove me as the subject.
[wtr-general] synchronisation in ruby
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.comwatir-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.
Re: [wtr-general] synchronisation in ruby
On Mon, Mar 29, 2010 at 4:22 PM, arihan sinha arihan.si...@googlemail.com wrote: can I use the synchronisation statement in the ruby test rather than sleep statement. Did you read this? http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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.