Function scrollToSelector

  • Scrolls to an element based on a CSS selector.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      Element selector.

    • scrollOptions: ScrollIntoViewOptions = ...

      Optional scroll parameters. The default value is instant .

    • Optional options: WaitForSelectorOptions

      Optional waiting parameters.

    Returns Promise<void>

    Example

    await scrollToSelector(ctx, '#save-button');
    

Generated using TypeDoc