title: Chrome profile to disable "Know your location" pop up
body: <p>I am running my tests in Google Chrome using <code>chromedriver.exe</code> binary. At one particular page this pop up comes which doesn't intervene/effect with the test but client doesn't want to see it. Possible reason could be, at the failure of test case it will capture the screenshot along with this pop up.</p>
  
  <p>How can I create a chrome <code>profile</code> or <code>capabilities</code> which would disable this pop up?</p>
  
  <p><a href="https://i.stack.imgur.com/p0wpn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p0wpn.jpg" alt="enter image description here"></a></p>
  
  <p>Something like this:</p>
  
  <pre><code>ChromeOptions options = new ChromeOptions();
  options.addArguments("user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data");
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>This code stopped the "Know your location" pop up to come but generated another pop up. So its only partially working.
      <code>options.addArguments("--enable-strict-powerful-feature-restrictions");
      driver = new ChromeDriver(options);</code></p>
  
  <p><a href="https://i.stack.imgur.com/jYrOS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jYrOS.jpg" alt="enter image description here"></a></p>