Why can't the Opera launched through Selenium perform security checks on the websites it accesses?
-
ddza last edited by
Why can't the Opera launched through Selenium perform security checks on the websites it accesses? The browser launched via the desktop icon can. Are there any parameter settings?
ChromeOptions options = new ChromeOptions(); ChromeDriverService chromeDriverService = new ChromeDriverService.Builder() .usingDriverExecutable(new File(webdriverPath)) .usingAnyFreePort() .build(); options.addArguments("--no-sandbox"); options.addArguments("--remote-allow-origins=*"); options.setBinary(new File(appPath)); driver = new ChromeDriver(chromeDriverService, options);
-
ddza last edited by
This is the Opera browser opened from the desktop shortcut:
This is the Opera browser launched via Selenium, and it doesn't show any warning when accessing dangerous websites:
The option to defend against malicious websites is enabled by default, but it doesn't seem to have any effect.