2.3.3 • Published 1 year ago

puppeteer-extra-plugin-click-and-wait v2.3.3

Weekly downloads
318
License
MIT
Repository
github
Last release
1 year ago

puppeteer-extra-plugin-click-and-wait

A plugin for puppeteer-extra.

Install

yarn add puppeteer-extra-plugin-click-and-wait

API

Table of Contents

Plugin

Extends: PuppeteerExtraPlugin

Convenience function to wait for navigation to complete after clicking on an element.

Adds a new page.clickAndWaitForNavigation(selector, clickOptions, waitOptions) method.

See this issue for more context: https://github.com/GoogleChrome/puppeteer/issues/1421

Note: Be wary of ajax powered pages where the navigation event is not triggered.

Type: function (opts)

  • opts (optional, default {})

Example:

await page.clickAndWaitForNavigation('input#submitData')

// as opposed to:

await Promise.all([
  page.waitForNavigation(waitOptions),
  page.click('input#submitData', clickOptions),
])

2.3.3

1 year ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.0

3 years ago

2.2.9

3 years ago

2.2.8

3 years ago

2.2.7

4 years ago

2.2.5

4 years ago

2.2.6

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.1.4

4 years ago

2.1.5

4 years ago

2.1.2

5 years ago

2.1.1

6 years ago

2.0.10

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago