Select Dropdown Option
Selects a value from an HTML dropdown element using either the value or the text of the dropdown item.
Category: Web Element Interaction · Group: Web · Activity name: DropDownSelect

Example
DropDownSelect("<selector>", iframeSelector="<iframeSelector>", iframeSelectors=[], text="<text>", index=0)
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Selector | string | Yes | CSS selector or XPath to identify dropdown. | |
| iFrame Selector | string | CSS selector or XPath to locate the iframe containing the target element. Leave empty if the element is not inside an iframe. | ||
| iFrame Selectors | array | An ordered array of CSS selectors or XPaths to locate nested iframes containing the target element. Provide selectors in order from outermost to innermost iframe (e.g., ['#parent-frame', '.child-frame'] for an element inside a child iframe that's within a parent iframe). Leave empty if the element is not inside any iframes. | ||
| Drop down name/value | string | The name or value of the dropdown item that is to be selected. If specified, Drop down index will be ignored. | ||
| Drop down index | integer | The index of the dropdown item that is to be selected. This will be ignored if Drop down name/value is specified. The indexation starts from 0. |