Waiting for element to exist Version 17 (Java)
Action group: Browsers
Description
This action is designed to check if the element exists on the page when the timeout expires. The element does not have to be visible
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 | |
Visibility | A way to check the visibility of an element | Robin.String | Yes | |
Availability | Method of checking the availability of an element | Robin.String | Yes | |
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
The visible and accessible element is clickable.
Example of use
Task
Go to https://codepen.io/GBora/pen/VLYyzY and check the existence of the element on the page (visibility and availability).
Solution
Use the actions "Open Browser", "Navigate", "Waiting for element to exist".
Implementation
- Assemble a robot scheme consisting of actions:
- Set the "Open Browser" action parameter.
- Set the parameters of the "Navigate" action.
- Set the parameters of the "Waiting for element to exist" action. Take the element using the WebSpy tool (see Create Web-elements section).
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента