Why in get() method of FirefoxDriver() driver I need to mention http:// E.g,driver.get("http://www.example.com"); if I dont provide http then I am getting an error.Why get() method needs http://.
public class OpenBrowser{
public void clickAddUser(){
WebDriver d = new FirefoxDriver();
d.get("www.example.com");
}
public static void main(String[] args) {
OpenBrowser o =new OpenBrowser();
o.clickAddUser();
}
Exception in thread "main" org.openqa.selenium.WebDriverException: Target URL www.example.com not well-formed. Command duration or timeout: 59 milliseconds