title: Webdriver wait not throwing timeout exception
body: <blockquote>
    <p>Hi, I am trying to use webdriver in selenium test. I want to check how it works. I given 5 seconds as maximum time in webdriver wait. My page loading time is more than 7 seconds but I am still not getting any timeout exception from webdriver wait. I am giving my console output also. Please tell why i am not getting timeout exception?</p>
  </blockquote>
  
  <pre><code>public class MainClass {
  
  private static ChromeDriver driver;
  
  
  public static void main(String[] args) {
  
  
  
              executeTest();
  
  }
  
  private static void executeTest( )  {
  
      // TODO Auto-generated method stub
      System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");
  
      driver = new ChromeDriver();
      // driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);
  
      driver.get("http://myUrl");
  
      Long loadtime = (Long) ((JavascriptExecutor) driver)
              .executeScript("return performance.timing.loadEventEnd - performance.timing.navigationStart;");
  
      System.out.println("loadding time " + Loadtime);
  
      WebDriverWait wait = new WebDriverWait(driver, 5);
  
      Boolean sign_in = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("signinbutton")))
              .isDisplayed();
  
      if (sign_in == true) {
          driver.findElement(By.id("signinbutton")).click();
      } else {
          System.out.println("Oops! Couldn't locate sign_in element!");
      }
  
      Boolean user_name = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("username_id")))
              .isDisplayed();
      // user_name.sendKeys("ANAND@RIL");
      if (user_name == true) {
          driver.findElement(By.id("username_id")).sendKeys("ANAND@RIL");
      } else {
          System.out.println("Oops! Couldn't locate user_name element!");
      }
  
      Boolean password = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("password_id")))
              .isDisplayed();
  
      if (password == true) {
          driver.findElement(By.id("password_id")).sendKeys("ANAND");
      } else {
          System.out.println("Oops! Couldn't locate password element!");
      }
  
      WebElement login = 
      wait.until(ExpectedConditions.elementToBeClickable(By.id("textButton")));
      login.click();
  
  }
  }
  </code></pre>
  
  <p>Console ooutput:</p>
  
  <p>Attempt 1 :</p>
  
  <pre><code>Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 42020
  Only local connections are allowed.
  Apr 18, 2018 12:07:35 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  INFO: Detected dialect: OSS
  **Loading time 7872**
  </code></pre>
  
  <p>Attempt 2 :</p>
  
  <pre><code>Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 38325
  Only local connections are allowed.
  Apr 18, 2018 12:07:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  INFO: Detected dialect: OSS
  **Loadding time 6632**
  </code></pre>
  
  <p>Attempt 3 :</p>
  
  <pre><code>Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 34619
  Only local connections are allowed.
  Apr 18, 2018 12:07:55 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  INFO: Detected dialect: OSS
  **Loadding time 7522**
  </code></pre>
  
  <p>Attempt 4 :</p>
  
  <pre><code>Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 48000
  Only local connections are allowed.
  Apr 18, 2018 12:08:05 PM org.openqa.selenium.remote.ProtocolHandshake createSession
  INFO: Detected dialect: OSS
  </code></pre>