scroll-to-element
Scrolls in a specified direction until a designated element becomes visible, supporting various selector strategies and a customizable maximum number of scroll attempts.
Instructions
Scroll until an element becomes visible
Input Schema
Name | Required | Description | Default |
---|---|---|---|
direction | No | Direction to scroll (default: down) | |
maxScrolls | No | Maximum number of scroll attempts (default: 10) | |
selector | Yes | Element selector to scroll to (e.g., xpath) | |
strategy | No | Selector strategy: xpath, id, accessibility id, class name (default: xpath) |