pywinauto_recorder.player.set_combobox
- pywinauto_recorder.player.set_combobox(element_path, value, duration=None, mode=MoveMode.linear, timeout=None, wait_ready=True)[source]
Sets the value of a combobox.
- 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 element
- Raises
FailedSearch – if the element is not found
- Return type
None