Function DOMclick

  • Triggers a mouse click on an element.

    Parameters

    • page: Page | Frame

      Puppeteer page object.

    • selector: string

      Selector for element to be clicked.

    • timeout: number = 30000

    Returns Promise<void>

    Deprecated

    • Use click instead.

    Remarks

    Does not send related events, such as mouseenter. Most of the time, you want to use click instead.

    Example

    await click(page, '.submit.button');
    

Generated using TypeDoc