pywinauto_recorder.player.move
- pywinauto_recorder.player.move(element_path=None, duration=None, mode=MoveMode.linear, timeout=120)[source]
Moves the mouse cursor over the user interface element.
- Parameters
element_path (
Union[str,UIAWrapper,NewType()(UI_Coordinates, (float,float)),None]) – element pathduration (
Optional[float]) – 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.mode (
Enum) – move mouse mode (seeMoveMode)timeout (
float) – period of time in seconds that will be allowed to find the element
- Return type
UIAWrapper- Returns
Pywinauto wrapper of clicked element
- Raises
FailedSearch – if the element is not found