puppeteer/website/versioned_docs/version-16.1.0/api/puppeteer.puppeteer.md
release-please[bot] 2d5f216621
chore(main): release 16.1.0 (#8743)
* chore(main): release 16.1.0

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-08-06 16:49:20 +02:00

3.0 KiB

sidebar_label
Puppeteer

Puppeteer class

The main Puppeteer class.

IMPORTANT: if you are using Puppeteer in a Node environment, you will get an instance of PuppeteerNode when you import or require puppeteer. That class extends Puppeteer, so has all the methods documented below as well as all that are defined on PuppeteerNode.

Signature:

export declare class Puppeteer

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Puppeteer class.

Properties

Property Modifiers Type Description
_changedProduct boolean
_isPuppeteerCore boolean
devices typeof devices
errors typeof errors
networkConditions typeof networkConditions

Methods

Method Modifiers Description
clearCustomQueryHandlers()
connect(options) This method attaches Puppeteer to an existing browser instance.
customQueryHandlerNames()
registerCustomQueryHandler(name, queryHandler)
unregisterCustomQueryHandler(name)