pywinauto_recorder.player.set_text
- pywinauto_recorder.player.set_text(element_path, value, duration=None, mode=MoveMode.linear, timeout=None, pause=None, end_with_enter=True)[source]
Sets the value of a text field.
- Parameters
element_path (
Union
[str
,UIAWrapper
,NewType()
(UI_Coordinates
, (float
,float
))]) – element pathvalue (
str
) – value of the comboboxduration (
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_firsttimeout (
Optional
[float
]) – period of time in seconds that will be allowed to find the elementpause (
Optional
[float
]) – pause in seconds between each typed keyend_with_enter (
bool
) – if True then Enter is sent after the value is entered
- Raises
FailedSearch – if the element is not found
- Return type
None