title: Java WebDriver wait for page to load
body: <p>I want to get exception of page load, but still have not results on it.
  I use implicitlyWait to set timer to throw exception.</p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
  driver.manage().timeouts().implicitlyWait(1, TimeUnit.MILLISECONDS);
  driver.get("http://www.rambler.ru");
  driver.quit();
  </code></pre>
  
  <p>Could somebody please update me with suggestions? I need this to make sure that page load will not be infinite, and if time to load will be more than I've defined in timer -> throw exception as result and skip TC (as failed).</p>
  
  <p>Thank you,
  Volodymyr</p>