Set list value Version 11 (Java)
Action group: Browsers
Description
The action sets the selected options of the <select> element.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser. | Robin.Selenium | Browser context | Yes |
Element | Element for interaction | Robin.WebElement | Yes | |
Single option | The value of a single option to be selected in the option list of the <select> element. | Robin.String | No | |
Option list | A collection of option values to be set in the option list of the <select> element. | Robin.Collection | No | |
Internal values | If the parameter value is true, then the passed values will be used as internal option values. | Robin.Boolean | true | No |
Add options | If the parameter value is true, then the specified values will be added to those already set. | Robin.Boolean | true | No |
Special conditions of use
None.
Example of use
Task
Go to https://www.rpachallenge.com/assets/shortestPath/public/shortestpath.html and set the list value State = AR
Solution
Use the actions "Open Browser", "Set list value".
Implementation
- Assemble a robot scheme consisting of actions:
- Set the "Open Browser" action parameter.
- Set the parameters of the "Set list value" action. To create an element, use WebSpy (see section Create Web-elements).
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
The required value has been set.
Обзор
Инструменты контента