from selenium import webdriver from selenium.webdriver import ActionChains link = 'https://google.com' driver = webdriver.Chrome() driver.get(link) img_ele = driver.find_element_by_xpath('//img[@alt="Google"]') actionChain = ActionChains(driver) actionChain.context_click(img_ele).perform()