I want to deactivate this chrome alert (see attached) for my selenium script. What I tried so far:
ChromeOptions ops = new ChromeOptions();
ops.addArguments("--disable-notifications");
System.setProperty("webdriver.chrome.driver", "./lib/chromedriver");
driver = new ChromeDriver(ops);
Also tried with the arguments: disable-infobars
and
disable-popup-blocking
. None of these solved the issue for me.
I tried the solution explained here: How to disable a How to disable a "Reload site? Changes you made may not be saved" popup for (python) selenium tests in chrome? But it doesn't work for me.
Sorry for the german alert, it asks if I want to leave the page.