pywinauto_recorder.player.set_text

pywinauto_recorder.player.set_text(element_path, value, duration=None, mode=MoveMode.linear, timeout=None, pause=0.1)[source]

Sets the value of a text field.

Parameters
  • element_path (Union[str, UIAWrapper, NewType()(UI_Coordinates, (float, float))]) – element path

  • value (str) – value of the combobox

  • duration (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, it just sends WM_CLICK window message, useful for minimized or non-active window).

  • mode (Enum) – move mouse mode: MoveMode.linear, MoveMode.x_first, MoveMode.y_first

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

  • pause (float) – pause in seconds between each typed key

Raises

FailedSearch – if the element is not found

Return type

None