Waiting for element text Version 13 (Java)
Action group: Browsers
Description
This action checks if the text exists in the element during the timeout period.
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 | |
Text | The text of the element | Robin.String | No | |
Use all text content | If the parameter value is true, then all text content will be checked | Robin.Boolean | true | No |
Match type | The type of text match. Strict - the content of the element is equal to the value of the «Text» parameter. Not strict - the content of the element contains the value of the «Text» parameter. Regular Expression - The content of the element matches the regular expression in the «Text» parameter. | Robin.String | 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
Text comparison is case-insensitive.
Example of use
Task
Follow the link https://codepen.io/GBora/pen/VLYyzY and wait for the element text, next refresh the page.
Solution
Use the "Open Browser", "Navigate", "Waiting for element text", "Refresh" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open browser" action parameters.
- Set the "Navigate" action parameters.
- Set the "Waiting for element text" action parameters. Get the element using the WebSpy tool (see section Create Web-elements).
- Set the "Refresh" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента