Skip to main content

Set Web Select

Command description

Select an option in a web <select> element. Capture the <select>, not an <option>. The command uses JavaScript, does not move the mouse, and can operate an obscured element.

<select name="cars" id="cars">
<option value="audi">Audi</option>
<option value="byd">BYD</option>
<option value="geely">Geely</option>
<option value="volvo">Volvo</option>
</select>

Command Input Parameters

input parametersInput parameter typeDescription
Webpage ObjectWebPageSet the drop-down box in this web page
Web ElementWebElement or str (captured element UID, not element name, not ms-rpa-id)Select a captured element or one returned by Get Web Element, Get Similar Web Elements, or Get Related Web Elements
Modification MethodenumBy Option Text, By Option Index
Selected ValuestrOption index or text, such as 1 or Volvo in the example
Element Wait DurationnumberMaximum time to wait for the element to appear, in seconds
Post-Execution DelaynumberTime to wait after setting the value, in seconds

Command Output Parameters

None

Type definition reference

tip
  • Install Runavelo browser extension 0.0.10 or later before using this command.
  • See Capture Web Elements for instructions on capturing elements and editing their attributes.

Example

FAQ

See Web Automation FAQ