Wait Element Attribute Version 13 (Java)

Action group: Browsers


Description

The action waits for the element property or element attribute to take the specified value. The name of the attribute or property can be selected from a predefined list or specified manually

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
Attribute or property name from the listThe predefined attribute or property element name from the list.Robin.String
Yes
Attribute nameUser-defined attribute nameRobin.String
No
Attribute valueThe attribute value to be set.Robin.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

If the element did not accept the specified value within the specified timeout, an error will be displayed

Example of use

Task

Go to website https://old.bankrot.fedresurs.ru/?attempt=1, make sure the element attribute has the value = checked, next - refresh the page.


Solution

Use the "Open Browser", "Wait Element Attribute", "Refresh" actions. 

Implementation

  1. Assemble a robot scheme with the actions.
  2. Set the "Open Browser" action parameters.
  3. Set the "Wait Element Attribute" action parameters. To create web-element use the WebSpy tool (see section Create Web-elements). 

  4. Set the "Refresh" action parameter.
  5. Click "Start" in the top panel.

Result

The program robot completed successfully.

  • Нет меток