WaitElementCssValue Version 13 (Java)
Action group: Browsers
Description
The action waits for the fact that the element's style value in the DOM has taken the specified value
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 | |
Property style name | Property style name | Robin.String | Yes | |
Style property value | Style Property Value | 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
None.
Example of use
Task
Go to https://codepen.io/GBora/pen/VLYyzY and wait for the style value (fontSize -10.5px), after - refresh the page.
Solution
Use the actions “Open Browser”, “Navigate”, “WaitElementCssValue”, “Refresh”.
Implementation
- Assemble a robot scheme consisting of actions:
- Set the “Open Browser” action parameter.
- Set the “Navigate” action parameter.
- Set the parameters of the “WaitElementCssValue” action. Take the element using the WebSpy tool (see Create Web-elements section).
- Set the parameters of the “Refresh” action.
- Click on the “Start” button in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента