Wait Element Attribute Version 13 (Java)
Action group: Browsers
Description
The action waits for the element property or element attribute to take the specified value. The name of the attribute or property can be selected from a predefined list or specified manually
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 to be inspected. Required. | Robin.WebElement | Yes | |
Attribute or property name from the list | The predefined attribute or property element name from the list. | Robin.String | Yes | |
Attribute name | User-defined attribute name | Robin.String | No | |
Attribute value | The attribute value to be set. | Robin.Object | No | |
Timeout | Wait until condition to be done (ms). The value is converted to seconds: it`s devided by 1000 and rounded up. | Robin.Numeric | No |
Special conditions of use
If the element did not accept the specified value within the specified timeout, an error will be displayed
Example of use
Task
Go to website https://old.bankrot.fedresurs.ru/?attempt=1, make sure the element attribute has the value = checked, next - refresh the page.
Solution
Use the "Open Browser", "Wait Element Attribute", "Refresh" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameters.
- Set the "Wait Element Attribute" action parameters. To create web-element use the WebSpy tool (see section Create Web-elements).
- Set the "Refresh" action parameter.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента