title: Timed out after 10 seconds waiting for presence of element located using Selenium Wedriver
body: <p><a href="https://i.stack.imgur.com/nLf75.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nLf75.png" alt="enter image description here"></a></p>
  
  <p>Locator for this is correct, but when running it in Selenium Webdriver, I am getting the same error . 
  I have used different kinds of waits like Implicit wait, Explicit wait, and Wait for Presence of element </p>
  
  <pre><code>WebElement myDynamicElement = (new WebDriverWait(driver, 10)).until(ExpectedConditions.presenceOfElementLocated(By.xp‌​ath("//div[@id = 'bs-example-navbar-collapse-1']/ul[2]/li[1]"))); 
  driver.findElement(By.xpath("//div[@id = 'bs-example-navbar-collapse-1']/ul[2]/li[1]")).click();
  </code></pre>