title: How do I click enter when a "save-as" window is open with Selenium?
body: <p>I want to save <a href="https://www.shs-conferences.org/articles/shsconf/pdf/2019/06/shsconf_m3e22019_03006.pdf" rel="nofollow noreferrer">this file</a> using Selenium. I'm able to click "save-as" with the following code:</p>
  
  <pre class="lang-py prettyprint-override"><code>driver = webdriver.Chrome(chrome_options=options, executable_path = chrome_driver_path)
  driver.get('https://www.shs-conferences.org/articles/shsconf/pdf/2019/06/shsconf_m3e22019_03006.pdf')
  
  ActionChains(driver).move_to_element(driver.find_element_by_xpath('//*[@id="plugin"]')).key_down(Keys.CONTROL).send_keys('s').key_up(Keys.CONTROL).perform()
  </code></pre>
  
  <p>However, I cannot get python to press the "save" bottom in the pop-up window. I have tried:</p>
  
  <pre class="lang-py prettyprint-override"><code>driver.find_elements_by_xpath("//*[contains(text(), 'Save')]").click()
  </code></pre>
  
  <p>and</p>
  
  <pre class="lang-py prettyprint-override"><code>ActionChains(driver).send_keys(u'\ue007').perform()
  </code></pre>
  
  <p>Anyone know how to click the "save" bottom?</p>