Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 6 Следующий »

Move to element Version 14 (Java)

Action group: Browsers


Description

The action scrolls the page to the element, using coordinates or by the specified number of PgUp or PgDn presses relative to the beginning of the page, if no element is specified.

Action icon

Settings of parameters

Свойство

Описание

Тип

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

Обязательность заполнения поля

Параметры

Контекст

Контекст действия для работы с браузером.

Robin.Selenium

Контекст браузера

Да

Элемент

Элемент для взаимодействия. Прим. : используется скрипт JS.

Robin.WebElement


Нет

Смещение по оси X

Смещение по оси X относительно левого верхнего угла страницы. Прим. : используется скрипт JS.

Robin.Numeric


Нет

Смещение по оси Y

Смещение по оси Y относительно левого верхнего угла страницы. Прим. : используется скрипт JS.

Robin.Numeric


Нет

Количество нажатий PgDn

Прокрутка страницы вниз

Robin.Numeric


Нет

Количество нажатий PgUp

Прокрутка страницы вверх

Robin.Numeric


Нет

Special conditions of use

If both element and offsets are specified, it will first scroll to the element and then offset it by the specified number of pixels from its center.

Offsets do not work inside nested elements.

Example of use

Task 

Go to the website https://old.bankrot.fedresurs.ru/TradeList.aspx and scroll the page to the element.


Solution

Use the "Open Browser", "Move to element" actions.

Implementation

  1. Assemble a robot scheme with the actions.

  2. Set the "Open Browser" action parameters.

  3. Set the "Move to element" action parameters. To create an element use the WebSpy tool (see section Create Web-element).

  4. Click "Start" in the top panel.

Result

The program robot completed successfully.


 

  • Нет меток