title: Selenium webdriver polling time
body: <p>I'm looking forward for a proper explanation about the selenium webdriver polling time in Selenium.</p>
  
  <p>As I know, below wait command will wait for 40 seconds until the specific element get clickable</p>
  
  <pre><code>  public void CreateSalesOrder(){
          WebDriverWait wait = new WebDriverWait(driver, 40);
          wait.until(ExpectedConditions.elementToBeClickable(btnNewSalesOrser));
              btnNewSalesOrser.click(); 
      }
  </code></pre>
  
  <p>In the 2nd code snippet I've added "Polling" command. </p>
  
  <pre><code>   public void CreateSalesOrder(){
          WebDriverWait wait = new WebDriverWait(driver, 40);
          wait.pollingEvery(2, TimeUnit.SECONDS);
          wait.until(ExpectedConditions.elementToBeClickable(btnNewSalesOrser));
          btnNewSalesOrser.click();
      }
  </code></pre>
  
  <p>What is the use of polling time ?</p>