pywinauto_recorder.player.right_drag_and_drop

pywinauto_recorder.player.right_drag_and_drop(element_path1, element_path2, duration=None, mode=MoveMode.linear, button=ButtonLocation.left, timeout=None)

This function is a partial function derived from the drag_and_drop() general function. The parameters of the function are set with the following values:

  • button=ButtonLocation.right

    Drags and drops from element_path1 to element_path2.

    param element_path1

    source element path

    param element_path2

    destination element path

    param duration

    duration in seconds of the mouse move (it doesn’t take into account the time it takes to find) (if duration is -1 the mouse cursor doesn’t move, it just sends WM_CLICK window message, useful for minimized or non-active window).

    param mode

    move mouse mode: MoveMode.linear, MoveMode.x_first, MoveMode.y_first

    param button

    mouse button: ButtonLocation.left, ButtonLocation.middl, ButtonLocation.right

    param timeout

    period of time in seconds that will be allowed to find the element

    return

    Pywinauto wrapper found with element_path2

    raises FailedSearch

    if the element is not found

Return type

UIAWrapper