title: Can't get rid of "keep/discard" notification while downloading ".eml" files
body: <p>How can I get rid of this <code>keep/discard</code> notification while downloading files via python selenium chromedriver?</p>
  <p>I've tried with the following but could not succeed:</p>
  <pre><code>chromeOptions = webdriver.ChromeOptions()
  prefs = {&quot;profile.default_content_setting_values.notifications&quot; : 2}
  chromeOptions.add_experimental_option('prefs', prefs)
  driver = webdriver.Chrome(chrome_options=chromeOptions)
  </code></pre>
  <p>EDIT: It seems I've found out another website having such &quot;.eml&quot; file which throws the same notification upon clicking on that link ending with <code>.eml</code>.</p>
  <p><a href="https://www.online-convert.com/file-format/eml" rel="nofollow noreferrer">Example website link</a></p>
  <p>I'm trying with the below approach:</p>
  <pre><code>from selenium import webdriver
  
  url = &quot;https://www.online-convert.com/file-format/eml&quot;
  
  dirf = r&quot;C:\Users\WCS\Desktop\emlfolder&quot;
  
  def download_file(link):
      driver.get(link)
      driver.find_element_by_css_selector(&quot;a[href$='example.eml']&quot;).click()
  
  if __name__ == '__main__':
      chromeOptions = webdriver.ChromeOptions()
      prefs = {'download.default_directory' : dirf}
      chromeOptions.add_experimental_option('prefs', prefs)
      driver = webdriver.Chrome(chrome_options=chromeOptions)
      download_file(url)
  </code></pre>
  <p>The notification exactly looks like the image below:</p>
  <p><a href="https://i.stack.imgur.com/1wRVV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1wRVV.jpg" alt="enter image description here" /></a></p>
  <p>Btw, I'm initiating click on that link to download only because the site I was experimenting with doesn't have any true url connected to that &quot;.eml&quot; files to navigate. Turn out that navigating to that &quot;.eml&quot; link lead to the same notification as well.</p>