Re: [wtr-general] Re: How to wait until an element is visible on a page

2009-12-01 Thread de Villamil Frédéric
Hello, I usually use a simple Watir::Waiter::wait_until { @browser.div(:class, / encoding_complete/).exists? } Works like a charm. Fred Le 1 déc. 2009 à 17:25, QAguy a écrit : > Yup, doing it using a text.include worked. Thanks for the help. > > QAguy > > On Dec 1, 9:42 am, KimBrown wrote:

[wtr-general] Re: How to wait until an element is visible on a page

2009-12-01 Thread QAguy
Yup, doing it using a text.include worked. Thanks for the help. QAguy On Dec 1, 9:42 am, KimBrown wrote: > http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir > > I've used this: > >   while (not $ie.html.include? "my html") >     >     puts "not there yet  ..." >     sleep 5 >   end > >

[wtr-general] Re: How to wait until an element is visible on a page

2009-12-01 Thread KimBrown
http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir I've used this: while (not $ie.html.include? "my html") puts "not there yet ..." sleep 5 end You can also use $ie.text.include? & there are probably other ones too, but that's all I seem to need. You could also put in a

[wtr-general] Re: How to wait until an element is visible on a page

2009-12-01 Thread Jarmo Pertman
Why is it invalid? How is the div made invisible? If you look at watir/ contrib/visible.rb, then it checks against css style visibility: hidden or display: none. Is one of these in use? Jarmo On Nov 30, 10:39 pm, QAguy wrote: > I have this piece of code on a page I am trying to script against.