Is element enabled Version 17 (Java)

Action group: Browsers


Description

The action checks if the element exists on the page when the timeout expires

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
ElementElement for interactionRobin.WebElement
Yes
VisibleIf the parameter value is true, then check the visibility of the element.Robin.BooleantrueNo
AvailableIf the parameter value is true, then check whether the element is enabled.Robin.BooleantrueNo
TimeoutWait until condition to be done (ms). The value is converted to seconds: it`s devided by 1000 and rounded up.Robin.Numeric
No
Results
ResultVariable with the overall result of checking the state of the element. The value is true if the results of all checks specified by the action parameters were successful. If at least one check fails, then the overall result will be false.Robin.Booleantrue

Special conditions of use

A visible and enabled element is clickable.

Example of use

Task

Follow the link https://wiki.rpa-robin.ru/Eng/index.html and check if the element is visible and enabled. If the element is found, click on it.

Solution

Use the "Open Browser", "Is element enabled", "If", "Send Click" actions. 

Implementation

  1. Assemble a robot scheme with the actions.
  2. Set the "Open Browser" action parameters.
  3. Set the "Is element enabled" action parameters. To create an element use the WebSpy tool (see section Create Web-element). 
  4. Set the "If" action parameters.
  5. Set the "Send Click" action parameters.
  6. Click "Start" in the top panel.

Result

The program robot completed successfully. The element is visible and enabled.

  • Нет меток