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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to