pywinauto_recorder.player.right_drag_and_drop(element_path1, element_path2, duration=None, mode=<MoveMode.linear: 0>, timeout=None)

Drags and drop with right button pressed from element_path1 to element_path2.

  • element_path1 (Union[str, UIAWrapper, NewType()(UI_Coordinates, (<class ‘float’>, <class ‘float’>))]) – element path

  • element_path2 (Union[str, UIAWrapper, NewType()(UI_Coordinates, (<class ‘float’>, <class ‘float’>))]) – element path

  • duration (Optional[float]) – duration in seconds of the mouse move (if duration is -1 the mouse cursor doesn’t move)

  • mode (Enum) – move mouse mode

  • timeout (Optional[float]) – period of time in seconds that will be allowed to find the element

Return type

Union[str, UIAWrapper, NewType()(UI_Coordinates, (<class ‘float’>, <class ‘float’>))]


Pywinauto wrapper with element_path2