Is element enabled Version 17 (Java)
Action group: Browsers
Description
The action checks if the element exists on the page when the timeout expires
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 | |
Visible | If the parameter value is true, then check the visibility of the element. | Robin.Boolean | true | No |
Available | If the parameter value is true, then check whether the element is enabled. | Robin.Boolean | true | 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 | |
Results | ||||
Result | Variable with the overall result of checking the state of the element. The value is true if the results of all checks specified by the action parameters were successful. If at least one check fails, then the overall result will be false. | Robin.Boolean | true |
Special conditions of use
A visible and enabled element is clickable.
Example of use
Task
Follow the link https://wiki.rpa-robin.ru/Eng/index.html and check if the element is visible and enabled. If the element is found, click on it.
Solution
Use the "Open Browser", "Is element enabled", "If", "Send Click" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameters.
- Set the "Is element enabled" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
- Set the "If" action parameters.
- Set the "Send Click" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully. The element is visible and enabled.
Обзор
Инструменты контента