Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

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

Свойство
Property
Описание
Description
Тип
Type
Пример заполнения
Filling example
Обязательность
Mandatory 
заполнения поля
field
Параметры
Parameters

Контекст

Контекст действия для работы с браузером.
ContextAction context for working with the browserRobin.Selenium
Контекст браузера
Browser context
Да
Yes

Элемент

Элемент для взаимодействия
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.
LocationPoint

Особые условия использования

Отсутствуют.

 

Пример использования 

Задача

...

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. Настроить параметры действия "Получить размер и координаты элемента". Для создания элемента необходимо воспользоваться WebSpy (см. раздел Создание Web-элементов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Программный робот отработал успешно. Размер и координаты элемента получены