I need to check that certain pages from a site, are https, like the login and personal info ones, so I think that an assert of the url with a ".contains" to check the existance of "https" in the url, but wanted to know if there's a better way to do this.
something like:
Public class mySite {
WebDriver driver ;
driver = new FirefoxDriver();
String baseUrl = "http://www.google.com";
driver.get(baseUrl);
assertTrue(driver.getCurrentUrl().contains("https://"));
}
Thanks!