标签:sel ble 全选 右击 rop context end from 删除
selenium给我们提供了一个类来处理这类事件——ActionChains ActionChains 类提供了鼠标操作的常用方法:
引入类
from selenium.webdriver.common.action_chains import ActionChains
perform(): 执行操作
context_click(): 右击;
double_click(): 双击;
drag_and_drop(): 拖动;
move_to_element(): 鼠标悬停
from selenium.webdriver.common.keys import Keys
标签:sel ble 全选 右击 rop context end from 删除
原文地址:https://www.cnblogs.com/xiong-hua/p/14961355.html