pywinauto_recorder.player.set_text

pywinauto_recorder.player.set_text(element_path, value, duration=None, mode=<MoveMode.linear: 0>, timeout=None, pause=0.1)

Sets the value of a text field.

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

  • value (str) – value of the combobox

  • 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

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

Return type

None