I'm not sure of the syntax, but I'd like to see it support multiple elements 
being verified.

-andy

----Original Message Follows----
From: "Bret Pettichord" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [Wtr-general] Wait for control to exist
Date: Tue, 13 Jun 2006 00:54:16 -0500

So, i think everyone can at least agree that it would be nice to have a
method on Watir elements that would not return until the element appeared on
a page. E.g.:

  ie.button(:value, "OK").dont_return_until_this_element_exists

This would be analogous to the existing ie.wait method, except that that
waits for the page to load the browser to no longer be busy.

The only thing is -- what should it be called?

Some ideas...

  ie.button(:value, "OK").wait_until_exists?
  ie.button(:value, "OK").wait_til_exist?
  ie.button(:value, "OK").wait
  ie.button(:value, "OK").ever_exist?

Bret


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to