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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser | Robin.Selenium | Browser context | Yes |
Element | Element for interaction | Robin.WebElement | Yes | |
Results | ||||
Element rectangle | The resulting variable containing the dimensions and coordinates of the rectangular area with the element. | Robin.RectangleL ocation | ||
Coordinates of the element center | The 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
- Assemble a robot scheme consisting of actions:
- Set the "Open Browser" action parameter.
- Set the parameters of the "Get element rectangle" action. To create an element, use WebSpy (see section Create Web-elements).
- Set the parameters for the "Close Browser" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The size and coordinates of the element are obtained.
Обзор
Инструменты контента