pywinauto_recorder.player.exists

pywinauto_recorder.player.exists(element_path, timeout=None)

Tests if en UI_Element exists.

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

  • 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’>))]

Returns

Pywinauto wrapper of the found element or None