title: How to handle 'connection has timed out' in Selenium Webdriver
body: <p>For Ex, I am accessing url in selenium Webdriver, its showing as 'connection has timed out' but my code keep on executes &amp; trying to find mail-Id, its not throwing any exception and showing error as </p>
  
  <blockquote>
    <p>'Unable to locate element:{"method":"id","selector":"hotel_dest"}'</p>
  </blockquote>
  
  <pre><code>driver.get("http://192.168.0.151/holidaysonclick/");  
  driver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);   
  driver.findElement(By.id("mail")).clear();
  </code></pre>
  
  <p>How to handle this Issue,</p>