Assert command for checking the url in selenium webdriver
You can validate it against the 'current url' as
String URL = driver.getCurrentUrl();
Assert.assertEquals(URL, "http://localhost:8080/imdb/homepage" );
You can validate it against the 'current url' as
String URL = driver.getCurrentUrl();
Assert.assertEquals(URL, "http://localhost:8080/imdb/homepage" );