I am trying to right click on a link, and then click "Save link as" and then have the program type some name and save the link. However, whenever I open a context menu on a link, I am only able to choose the first or second option in the menu. More specifically, I can click on "Open link in new tab" and "Open link in new window", but not anything below that. Here is my code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
import time
driver = webdriver.Chrome()
driver.get("https://www.wikipedia.org")
elem = driver.find_element_by_link_text('Download for iOS on the App Store')
actionChains= ActionChains(driver);
time.sleep(3)
actionChains.context_click(elem).send_keys(Keys.SHIFT, Keys.ARROW_DOWN,'H').send_keys(Keys.ARROW_DOWN).send_keys(Keys.ARROW_DOWN).send_keys(Keys.ARROW_DOWN).send_keys(Keys.ENTER).perform()