title: Why doesn't presenceOfElementLocated timeout after 2 seconds as specified in wait
body: <p>So I have this code:</p>
  
  <pre><code>public static boolean isWebElementPresent(WebDriver driver, By byExpression) {
  
      WebDriverWait wait = new WebDriverWait(driver, 2);
      try { 
          wait.until(ExpectedConditions.presenceOfElementLocated(byExpression));
          return true;
      } catch (TimeoutException e) {
          //System.out.println("Webelement is not present under this expression " + byExpression);
          return false;
      }
  }
  </code></pre>
  
  <p>The wait.until call takes approx. 20 seconds until the timeout is catched. My question is why doesn't this method call timeout after 2 seconds which I specified in the WebDriverWait above? what does the wait do in this case?</p>
  
  <p>Thanks </p>