• Mouse clicks on an element with provided selector, clickCount and button

    Parameters

    • ctx: Context

      Puppeteer context object.

    • selector: string

      Selector to click.

    • Optional options: MouseClickOptions

    Returns Promise<void>

    Example

    await mouseClick(ctx, selector, {button: 'right', clickCount: 1});