Get element rectangle Version 11 (Java)
Action group: Browsers
...
Description
This action is used to obtain coordinates and dimensions of the element
Action icon
Image Modified
...
Settings of parameters
СвойствоОписаниеТипПример заполненияОбязательностьзаполнения поляПараметрыКонтекст | Контекст действия для работы с браузером.Context | Action context for working with the browser | Robin.Selenium |
Контекст браузераДаЭлемент | Элемент для взаимодействияElement | Element for interaction | Robin.WebElement |
ДаРезультаты |
Прямоугольная область элемента | Результирующая переменная, содержащая размеры и координаты прямоугольной области с элементом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 |
Результирующая переменная, содержащая координаты центра элементаLocationPoint Особые условия использования
Отсутствуют.
Пример использования
Задача
...
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.
- Настроить параметры действия "Получить размер и координаты элемента". Для создания элемента необходимо воспользоваться WebSpy (см. раздел Создание Web-элементов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Программный робот отработал успешно. Размер и координаты элемента получены.