I want to save this file using Selenium. I'm able to click "save-as" with the following 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()
However, I cannot get python to press the "save" bottom in the pop-up window. I have tried:
driver.find_elements_by_xpath("//*[contains(text(), 'Save')]").click()
and
ActionChains(driver).send_keys(u'\ue007').perform()
Anyone know how to click the "save" bottom?