watir-webdriver wait for page load
Using watir-webdriver , how do i wait for a page to load after i click a link? At the moment i am doing: sleep n But this is not ideal as the page response varies so much. Is there a method to test whether the page is ready or whether there is a certain element in the page. I understand in the normal watir gem there is Watir::Waiter.wait_until or something similar, but I cannot see this in the webdriver version. marc I don't know if they're the best way, but this is how I'm handling this for waiting for updating div to clear: while browser.div(:id=>"updating_div").visible? do sleep 1 end This