Method elm.ComboSelect
Overload
Finds and selects an item in the drop-down list of this combo box or drop-down button.
public elm ComboSelect(string item, string how = null, double waitS = 3)
Parameters
item (string)
Item name (elm.Name). String format: wildcard expression. |
how (string)
Try this parameter if the function fails to select the item etc. In the string can be used these characters to specify how to select the item and close the drop-down list:
If the string is Usually need just a single character (string like The string also can contain sleep times. For example If the string starts with If the string isn't |
waitS (double)
Seconds to wait for expanded state (if not 0) and for the item. Can be negative to avoid timeout exceptions. |
Returns
elm
The item. |
Exceptions
ArgumentException
Error in item string (wildex options or regex) or how. |
NotFoundException
Item not found. |
Exception
Exceptions of used functions. |
Remarks
The function at first calls elm.Expand to show the drop-down list, unless how starts with "~"
. Then finds the item by name, selects it and closes the drop-down list.