title: ChromeDriver Remote - disable notifications using browserstack
body: <p>I use selenium on BrowserStack service and I need to disable chrome notifications [ex. on screenshot]. Locally I do it with the following code, but all manuals in Internet didn't help me to get it working on remote ChromeDriver on BrowserStack.</p>
  
  <p><a href="http://i.stack.imgur.com/vz7CI.jpg" rel="nofollow">ChromeDriver notification.jpg</a></p>
  
  <p>
  
  <pre><code>&gt;@Before
      public void SetUP() throws Exception {
          ChromeOptions options = new ChromeOptions();
          Map&lt;String, Object&gt; prefs = new HashMap&lt;String, Object&gt;();
          prefs.put("profile.default_content_setting_values.notifications", 2);
          options.setExperimentalOption("prefs", prefs);
          options.addArguments("--start-maximized");
          options.addArguments("disable-popup-blocking");
          DesiredCapabilities caps = DesiredCapabilities.chrome();
          caps.setCapability("browser", "Chrome");
          caps.setCapability("browser_version", "49.0");
          caps.setCapability("os", "Windows");
          caps.setCapability("os_version", "10");
          caps.setCapability("resolution", "1280x1024");
          caps.setCapability(ChromeOptions.CAPABILITY, options);
          caps.setCapability("browserstack.debug", "true");
          driver = new RemoteWebDriver(new URL(URL), caps);
          driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
      }
  </code></pre>
  
  <p> </p>