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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
ElementElement to be inspected. Required.Robin.WebElement
Yes
TextThe text of the elementRobin.String
No
Use all text contentIf the parameter value is true, then all text content will be checkedRobin.BooleantrueNo
Match typeThe 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
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

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

  1. Assemble a robot scheme with the actions.
  2. Set the "Open browser" action parameters.
  3. Set the "Navigate" action parameters.
  4. Set the "Waiting for element text" action parameters. Get the element using the WebSpy tool (see section Create Web-elements). 
  5. Set the "Refresh" action parameters.
  6. Click "Start" in the top panel.

Result

The program robot completed successfully.

  • Нет меток