Following Joseph Moore's suggestion, I've submitted a waitForCondition
extension that can wait for arbitrary JavaScript evaluations to return
true.
http://wiki.openqa.org/display/SEL/waitForCondition
Based on Joseph's suggestion here:
http://www.josephmoore.net/2005/11/using-seleniums-waitforvalue.html
Unlike waitForValue, the waitForCondition extension even allows you to
specify a timeout in milliseconds, failing the test if the timeout isn't
met.
Notably, the extension overrides part of the selenium-executionloop.js
test loop to make the polling method handle thrown exceptions. Ideally,
this would get baked into the official next release.
-Dan
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users