TWAZI

Scroll To Element

Scrolls the browser viewport to bring a specified element into view.

Inputs

  • Web Page required: Browser instance with loaded page
  • Selector required: CSS or XPath selector for target element
  • Behavior: Scroll behavior ("auto", "smooth", default: "smooth")
  • Block: Vertical alignment ("start", "center", "end", default: "center")

Example

{
  "Web Page": "<browser_instance>",
  "Selector": "#content-section",
  "Behavior": "smooth",
  "Block": "center"
}

Outputs

  • Success: Boolean indicating if scroll was successful
  • Element Position: Final coordinates of the element
  • Web Page: Updated browser instance
Scroll to element workflow example

On this page

Edit on GitHub