Get element rectangle Version 11 (Java)

Action group: Browsers


Description

This action is used to obtain coordinates and dimensions of the element

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browserRobin.SeleniumBrowser contextYes
ElementElement for interactionRobin.WebElement
Yes
Results
Element rectangleThe resulting variable containing the dimensions and coordinates of the rectangular area with the element.Robin.RectangleL ocation

Coordinates of the element centerThe resulting variable containing the coordinates of the element center.Robin.LocationPo int

Special conditions of use

None.

Example of use

Task

Go to https://wiki.rpa-robin.ru/Eng/index.html and get the size and coordinates of the item. 

Solution

Use the actions "Open Browser", "Get element rectangle", "Close browser". 

Implementation

  1. Assemble a robot scheme consisting of actions: 
  2. Set the "Open Browser" action parameter.

  3. Set the parameters of the "Get element rectangle" action. To create an element, use WebSpy (see section Create Web-elements). 

  4. Set the parameters for the "Close Browser" action.
  5. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The size and coordinates of the element are obtained. 

  • Нет меток