That woudl work.

What would be nice would be something like this:

@ie.wait(10) {
  button(:id, 'btnOne)
  span(:id, 'blah')
}

I'm not sure how that would translate into working code though.

Also, is it enough to just check that the item exists?  Often I have items 
that are being updated via AJAX style code and they exist, but they are 
changing, so I'm looking to see if the value is something specific or 
something different than last time.   If I had the polling on exist it 
wouldn't be enough.

-andy



----Original Message Follows----
From: "Bret Pettichord" <[EMAIL PROTECTED]>
Reply-To: wtr-general@rubyforge.org
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Wait for control to exist
Date: Tue, 13 Jun 2006 08:22:42 -0500

On 6/13/06, Andy Sipe <[EMAIL PROTECTED]> wrote:
>
>I'm not sure of the syntax, but I'd like to see it support multiple
>elements
>being verified.
>
>-andy


How about this ?

ie.button(:value, "OK").wait_til_exists
ie.button(:value, "Cancel").wait_til_exists

Bret


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to