Using watir-webdriver, how do I wait for a page to load after I click a link?
At the moment I am using:
sleep n
But this is not ideal a
browser.wait_until can be used.
browser.wait_until
It's more helpful because you can define what to wait for in the parameters (()), as in:
()
browser.wait_until(browser.text.include("some text"))