title: Wait for a particular URL in selenium
body: <p>I have the requirement of waiting for a particular URL in website automation using Selenium in Chrome browser. 
  The user will be doing online payment on our website. Fro our website user is redirected to the payment gateway. When the user completes the payment, the gateway will redirect to our website. I want to get notified redirection from gateway to our site. </p>
  
  <p>I got an example which waits for “Particular Id” in the web page, here is vb.net code</p>
  
  <pre><code>driver.Url = "http://gmail.com"
     Dim wait As New WebDriverWait(driver, TimeSpan.FromSeconds(10))
                  wait.Until(Of IWebElement)(Function(d) d.FindElement(By.Id("next")))
  </code></pre>
  
  <p>This navigates to “gmail.com” and waits for ID “next” on that page. Instead, I want to continue the code only when particular URL loads. </p>
  
  <p>How can I do this?</p>
  
  <p>Please help me.</p>