I’m trying to write simple test. My problem is, that i want to wait until the page is loaded completly. At the moment i’m waiting until some elements are presen, but that is not really what i want. Is it possible to make something like this:
driver = Selenium::WebDriver.for :chrome
driver.navigate.to url
driver.wait_for_page_to_load "30000"
With Java isn’t problem, but how to make it with ruby?
This is how the Selenium docs () suggest:
If that is not an option you can try the suggestion from this SO post though it would require some Javascript on top of the Ruby/Rails.
It seems that
wait.untilis being/has been phased out. The new suggested process it to look for the page to have an element you know will be there: