selenium's actionchains actionchains

click( on_element=None ) - click the left mouse button

click_and_hold( on_element=None ) - click the left mouse button without releasing it

context_click( on_element=None ) - click the right mouse button

double_click( on_element=None ) - double click the left mouse button

drag_and_drop( source, target ) - drag to an element and release

drag_and_drop_by_offset( source, xoffset, yoffset ) - drag to a certain coordinate and release

key_down( value, element=None ) - press a key on a keyboard

key_up( value, element=None ) - release a key

move_by_offset( xoffset , yoffset ) - move the mouse from the current position to a certain coordinate

move_to_element( to_element ) - move the mouse to an element

move_to_element_with_offset( to_element, xoffset, yoffset ) - move to the position of how many distances away from an element (coordinates of the upper left corner)

perform() - perform all actions in the chain

release( on_element=None ) - release the left mouse button at an element position

send_keys( *keys_to_send ) - send a key to the currently focused element

send_keys_to_element( element, *keys_to_send ) - send a key to the specified element

Detailed address: https://blog.csdn.net/huilan_same/article/details/52305176

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325024282&siteId=291194637