How do you make Selenium 2.0 wait for the page to load?
Ruby implementation:
wait = Selenium::WebDriver::Wait.new(:timeout => 10) wait.until { @driver.execute_script("return document.readyState;") == "complete" }