'data:,' in the address bar while using chromedriver 2.19 and selenium 2.47 'data:,' in the address bar while using chromedriver 2.19 and selenium 2.47 google-chrome google-chrome

'data:,' in the address bar while using chromedriver 2.19 and selenium 2.47


I had the same issue and the problem was that I had mixed up my type definitions. Instantiate your driver as follows.

package BDDTest;import java.util.concurrent.TimeUnit;import org.openqa.selenium.chrome.ChromeDriver;public class SeleniumTest {    private ChromeDriver driver; //DOUBLE CHECK THIS BIT!!     private String browserName;    private String browserVersion;    //adjust for your own path\to\chromedriver.exe    public void setUp() throws Exception {        System.setProperty("webdriver.chrome.driver","D:\\cuke-jvm-dependencies\\chromedriver.exe");        driver = new ChromeDriver();        browserName = "Chrome";        browserVersion = "46";        System.out.println("Automated test run. We’re running on "+browserName+" "+browserVersion);        driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);    }    public void tearDown() {        driver.quit();    }    public void goToHomePage() {        driver.get("http://www.google.ca");    }}


The 'data:,' URL is just the default address that chromedriver navigates to when launching chrome. So this by itself doesn't necessarily mean that anything is going wrong. Just remember to add the protocol - i.e. "http://".


This answer should help. Just update the chromedriver and it'll work.


matomo