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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
ElementElement to be inspected. Required.Robin.WebElement
Yes
Property style nameProperty style nameRobin.String
Yes
Style property valueStyle Property ValueRobin.Object
No
TimeoutWait 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

  1. Assemble a robot scheme consisting of actions: 
  2. Set the “Open Browser” action parameter.
  3. Set the “Navigate” action parameter.
  4. Set the parameters of the “WaitElementCssValue” action. Take the element using the WebSpy tool (see Create Web-elements section). 
  5. Set the parameters of the “Refresh” action.

  6. Click on the “Start” button in the top panel. 

Result

The program robot completed successfully. 

  • Нет меток