Waiting for element to exist Version 17 (Java)

Action group: Browsers


Description

This action is designed to check if the element exists on the page when the timeout expires. The element does not have to be visible

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
VisibilityA way to check the visibility of an elementRobin.String
Yes
AvailabilityMethod of checking the availability of an elementRobin.String
Yes
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

The visible and accessible element is clickable.

Example of use

Task

Go to https://codepen.io/GBora/pen/VLYyzY and check the existence of the element on the page (visibility and availability). 

Solution

Use the actions "Open Browser", "Navigate", "Waiting for element to exist". 

Implementation

  1. Assemble a robot scheme consisting of actions: 

  2. Set the "Open Browser" action parameter.

  3. Set the parameters of the "Navigate" action. 

  4. Set the parameters of the "Waiting for element to exist" action. Take the element using the WebSpy tool (see Create Web-elements section). 



  5. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully.

  • Нет меток