Function click

  • Clicks on an element.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      Css selector.

    • Optional options: WaitForSelectorOptions & ClickOptions

    Returns Promise<void>

    Remarks

    Also sends related events, such as mouseenter.

    Example

    await click(ctx, 'button[id="submit"]');
    

Generated using TypeDoc