I am working with Java Selenium. I came across the following error:
System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.gezinomi.com/");
Picture of error:
I am working with Java Selenium. I came across the following error:
System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.gezinomi.com/");
Picture of error:
This is not an error, since if you click Cancel
option, it'll just follow the path normally.
However, it is probably causing the test to fail, once the browser remains waiting the confirmation. You can disable it through Selenium Java code, as already shown here:
ChromeOptions options = new ChromeOptions();
options.addArguments("chrome.switches","--disable-extensions");
System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
WebDriver driver = new ChromeDriver(options);
driver.get("http://www.gezinomi.com/");
That popup was problematic while running tests remotely on SauceLabs. I tried the ChromeOptions argument "--disable-extensions"
which didn't work. I gave up, accepting that a chunk of screen would not be visible.
As soon as I stopped researching, I came across this reference which clearly defines the Chrome option as "--disable-extensions-file-access-check"
.
I don't know why this was so hard to find, but hopefully it can help others waste LESS of their time.