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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
ElementElement for interaction. Note: JS script is used.Robin.WebElement
No
X axis offsetX-axis offset relative to the upper left corner of the page. Note: JS script is used.Robin.Numeric
No
Y axis offsetY-axis offset relative to the upper left corner of the page. Note: JS script is used.Robin.Numeric
No
Number of PgDn pressesScrolling page downRobin.Numeric
No
Number of PgUp pressesScrolling page upRobin.Numeric
No

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.


 

  • Нет меток