from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains

browser = webdriver.Firefox()
browser.get('https://www.baidu.com')
btn = browser.find_element_by_id('lg').find_element_by_tag_name('img')
ActionChains(browser).context_click(btn).send_keys('V').perform()

通过ActionChains类先使用context_click()点击元素,在发送V键,即另存为,最后perform

在火狐浏览器可用

相关文章:

  • 2021-10-23
  • 2021-06-15
  • 2022-12-23
  • 2022-02-09
  • 2021-09-15
  • 2021-06-05
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-06-09
  • 2022-12-23
  • 2021-08-24
  • 2022-02-15
相关资源
相似解决方案