1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #鼠标左键单击 click(on_element=None) #鼠标右键单击 contextClick(on_element=None) #鼠标左键双击 doubleClick(on_element=None) #点击鼠标左键,不松开 click_and_hold(on_element=None) #鼠标悬停 move_to_element(on_element=None) #拖拽到某个元素然后松开 drag_and_drop(source, target) #拖拽到某个坐标然后松开 drag_and_drop_by_offset(source,xoffset,yoffset) #鼠标从当前位置移动到某个坐标 move_by_offset(xoffset, yoffset) #鼠标移动到某个元素 move_to_element(to_element) #移动到距某个元素(左上角坐标)多少距离的位置 move_to_element_with_offset(to_element, xoffset, yoffset)
|