On 6/13/06, David Schmidt <[EMAIL PROTECTED]> wrote:
How about the easy way.  Just alias your nice "until_with_timeout" to
"wait_until" so both names work and just use that your first format with
the block.  That way the block can contain any code that returns a
boolean, which will allow Andy's request for multiple element support to
work like:

wait_until(timeout) { ie.button(:id, 'btnOne').exists? and ie.span(:id,
'blah').exists? }

with the timeout being optional and using a default_timeout like Bret
suggests below.

This can then support all *sorts* of things that folks wait for,
including thing like the displayed "spinners" that I was waiting to
appear and then disappear.

+1

Except that the old until_with_timeout method will be replaced by (rather than aliased to) wait_until

BTW, the existing until_with_timeout method had been intended for internal use only and that's why it is kinda ugly.

Bret

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

Reply via email to