title: How to disable push-notifications using Selenium for Firefox and Chrome?
body: <p>I want to disable the notification when I launch Firefox browser through Selenium  Webdriver.<br>
  I found <a href="https://stackoverflow.com/questions/43908995/how-to-disabling-notification-using-selenium-for-firefox-browser">this answer</a>, but it's deprecated and does not work for me on Firefox (it works perfectly on Chrome though).  </p>
  
  <p>I'm use this dependency for my <em>pom.xml</em>:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
      &lt;version&gt;3.11.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>