Tad nu lūk, problēma - palaižot chrome, parādās kļūdas paziņojums:
You are using an unsupported command-line flag --ignore-certificate-errors. Stability and security will suffer.
Risinājums:
DesiredCapabilities caps = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("--test-type");
caps.setCapability("chrome.binary","full_path_to_chrome.exe");
caps.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver driver = new ChromeDriver(caps);
Ja nu ir vēlme, tad šeit var palasīt kapēc tā notiek.
No comments:
Post a Comment