After searching for a long time, Alister Scott finally clued me in that watir-webdriver does in fact include a method that I thought was only available in selenium (or selenium webdriver). Instead of doing a wait_until_present and then doing a click, you can just (globally) do a
myBrowser.driver.manage.timeouts.implicit_wait=3 so that each access of a DOM element (click, set, text, etc.) will try for X seconds before failing with Watir::Exception::UnknownObjectException: unable to locate element This is huge for me. Coming from watir where waiting was not necessary, I (instead of doing tons of explicit waits) had basically wrapped all calls with rescue/sleep statements that tried 3 times before bubbling up the exception. I'm just posting this because I didn't find documentation for this anywhere and I'd expect many people to have a similar need as I had. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
