I have been searching for this a lot, but could not find an answer for Python.
Is it possible to simulate right click, or open up the context menu via selenium/chromedriver?
I have seen options for Java, and some other languages, but never in Python. What would I have to do to simulate a right click on a link, or a picture?
It's called
context_click
in selenium.webdriver.common.action_chains. Note that Selenium can't do anything about browser level context menu, so I assume your link will pop up HTML context menu.You can perform context click using ActionChains, and use Arrows via send_keys to select an element from the context menu.