Function scrollToXpathSelector

  • Scrolls to an element based on an XPath selector.

    Parameters

    • ctx: Context

      Context object

    • selector: string

      Element XPath selector

    • scrollOptions: ScrollIntoViewOptions = ...

      Optional scroll parameters. The default value is instant .

    • Optional options: WaitForSelectorOptions

      Optional waiting parameters.

    Returns Promise<void>

    Example

    await scrollToXpathSelector(ctx, '//button[@id="save-button"]');
    

Generated using TypeDoc