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

Description of the problem:

  • When I start the test, I see data:,in the address bar of Chrome, and after a few seconds the Chrome window closes, and does not start navigating the URL.

OS and Chrome info:

  • ChromeDriver: - 2.19
  • Chrome: - 44.0.2403.157
  • Selenium: - 2.47
  • Windows 7: 32 bit

Steps to play:

  • Performing a simple test that tries to navigate a web page using driver.get(...).

After running the test, the console displays the message below

"Starting ChromeDriver 2.19.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961) on port 56002 Only local connections are allowed."

data:, Chrome, 10 , URL.

+4
3

, , . .

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");
    }

}
0

URL 'data:,' - , . , , - . - .. "Http://".

0

answer . chromedriver, .

0
source

Source: https://habr.com/ru/post/1605930/


All Articles