title: Selenium Explicit Wait not working when clicked on submit button (where page loads for 25 seconds)
body: <p>When clicked on book bus on cleartrip.com website for the round trip journey and the explicit wait is used, then I am getting NoSuchElementException or StaleElementException but same if I am using it at a different place in the same class it works. (I am using Thread. sleep currently which I don't want to use)</p>
  
  <pre><code>    Below is the code I have used explicit wait's instance and called a method as visibilityOf(WebElement). When used thread.sleep
      programs works smoothly.
  </code></pre>
  
  <p>Below is gitHub link for the code, Refer line no 64 to 67 on this code</p>
  
  <p><a href="https://github.com/bharadiya/TestNGTutorials/blob/master/src/Scenarios/OnClearTrip.java" rel="nofollow noreferrer">https://github.com/bharadiya/TestNGTutorials/blob/master/src/Scenarios/OnClearTrip.java</a></p>