title: Deactivate chrome alert with selenium
body: <p>I want to deactivate this chrome alert (see attached) for my selenium script. What I tried so far: </p>
  
  <pre><code>        ChromeOptions ops = new ChromeOptions();
          ops.addArguments("--disable-notifications");
          System.setProperty("webdriver.chrome.driver", "./lib/chromedriver");
          driver = new ChromeDriver(ops);
  </code></pre>
  
  <p>Also tried with the arguments: <code>disable-infobars</code> and
  <code>disable-popup-blocking</code>. None of these solved the issue for me.</p>
  
  <p>I tried the solution explained here: How to disable a <a href="https://stackoverflow.com/questions/55587025/how-to-disable-a-reload-site-changes-you-made-may-not-be-saved-popup-for-pyt">How to disable a &quot;Reload site? Changes you made may not be saved&quot; popup for (python) selenium tests in chrome?</a>
  But it doesn't work for me.</p>
  
  <p>Sorry for the german alert, it asks if I want to leave the page. 
  <img src="https://i.stack.imgur.com/2UWJW.png" alt="Chrome alert"></p>