Skip to main content

scroll_into_view

Function scroll_into_view 

Source
pub async fn scroll_into_view(
    adapter: &dyn EngineAdapter,
    selector: &str,
    options: &ScrollOptions,
) -> Result<ScrollResult, EngineError>
Expand description

Scroll an element into view.

§Arguments

  • adapter - The engine adapter to use
  • selector - The CSS selector for the element
  • options - Scroll options

§Returns

The result of the scroll operation