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
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. Note: JS script is used. | Robin.WebElement | No | |
X axis offset | X-axis offset relative to the upper left corner of the page. Note: JS script is used. | Robin.Numeric | No | |
Y axis offset | Y-axis offset relative to the upper left corner of the page. Note: JS script is used. | Robin.Numeric | No | |
Number of PgDn presses | Scrolling page down | Robin.Numeric | No | |
Number of PgUp presses | Scrolling page up | Robin.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
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameters.
- Set the "Move to element" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента