Select Option
Select Option
Section titled “Select Option”Type: page-select · Package: Browser v1.0.0
Choose an option from an HTML drop-down list (<select>). You can select by internal value, by visible label or by index (position). Also supports multiple selection.
How it works
Section titled “How it works”Locate <select> by its selector and choose the option that matches value. Zoan Automation attempts to interpret value as the option’s value, its visible text, or its index (starting at 0).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The <select> element. |
value | expression | Value, label or index (base 0) of the option. For multiple, pass an array expression. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The page session. Omit it inside a body; outside, pass = page. |
timeout | number | Maximum in ms to wait. By default 30000. |
Example
Section titled “Example”Page Select selector = (#pais) value = "Colombia" // por etiqueta visiblePage Select selector = (#pais) value = "CO" // por valor internoPage Select selector = (#pais) value = 0 // por índice (primera opción)Page Select selector = (#temas) value = = arr("RPA", "IA") // selección múltiple