Selenium learning - ActionChains Interface

 

ActionChains achieved with context object interface.

First, the behavior control

    perform --- perform all ready Action
    reset_actions --- Clear all ready Action
    operating time between pause --- Action is set interval

 

Second, mouse

    click --- click on the left mouse button (or the element can specify the object does not specify)
    click_and_hold --- but do not release the left mouse button click (or element can be specified objects do not specify)
    Release --- Release the mouse click action (or not can be specified Specifies the release on the target element object)
    context_click --- right click (or element can be specified objects do not specify)
    DOUBLE_CLICK --- Double-click the left mouse button (or the element can specify the object does not specify)
    drag_and_drop --- the left mouse button in two drag between elements
    drag_and_drop_by_offset --- left mouse drag elements to a target offset
    move_by_offset --- mouse to move a specified offset
    move_to_element --- mouse to move to the specified element
    specified move_to_element_with_offset --- mouse moves to the specified element offset position

 

Third, the keyboard

    KEY_DOWN --- keyboard press
    KEY_UP --- keyboard release
    send_keys --- analog button to send the current element
    send_keys_to_element --- analog button to send the specified element

 

Guess you like

Origin www.cnblogs.com/ringboow/p/11120254.html