[Wtr-general] not exactly watir but a ruby question

2006-08-11 Thread Manish Sapariya
Hi, How do break out of x.times loop. 10.times do findWindowLike(nil, /^Microsoft Internet Explorer$/, //) {|win| puts #{win.getClassName}\t#{win.getWindowText} #p win.getWindowRect #p win if(win.getParent().hwnd == $ie.hwnd) then #p $ie.hwnd,

Re: [Wtr-general] not exactly watir but a ruby question

2006-08-11 Thread Dave Hoover
On 8/11/06, Manish Sapariya [EMAIL PROTECTED] wrote: Hi, How do break out of x.times loop. Here's one answer to your question... http://permalink.gmane.org/gmane.comp.lang.ruby.general/21817 ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] not exactly watir but a ruby question

2006-08-11 Thread Jeff Wood
Manish Sapariya wrote: Hi, How do break out of x.times loop. 10.times do findWindowLike(nil, /^Microsoft Internet Explorer$/, //) {|win| puts "#{win.getClassName}\t#{win.getWindowText}" #p win.getWindowRect #p win if(win.getParent().hwnd == $ie.hwnd)