title: Assert command for checking the url in selenium webdriver
body: <p>As there is no xpath and id for the url on the webpage, how can i check if my actual url is matching with the expected url?</p>
  
  <p>I have provided my code below, but it did not work.   </p>
  
  <pre><code>String Actualtext = driver.findElement(By.linkText("http://localhost:8080/imdb/homepage")).getText();
  Assert.assertEquals(Actualtext, "http://localhost:8080/imdb/homepage" );
  System.out.println("URL matching --&gt; Part executed");
  </code></pre>