Another more generic option is to ask the developers to place an invisible 
object on the page when the javascript completes, then wait_until_present 
for that. 

Dave

On Monday, March 5, 2012 9:34:56 AM UTC-8, cootcraig wrote:
>
>
> I'm using watir for the first time.  The site I'm working with 
> generates the elements I need to interact with in JavaScript.  If I 
> search for the element immediately it is not on the page, If I wait 20 
> seconds it is.  What is a good way to wait for the page elements to be 
> built?  I will try searching in a loop until an element is found, but 
> I wonder if there is another way. 
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to