puppeteer/website/versioned_docs/version-10.0.0/puppeteer.puppeteer.md
TASNEEM KOUSHAR 34ff00e2fe
chore(docs): generate site for v10.0.0
* fix: added parts of website

* fix: removed unnecessary lines

* fix: updated contributing.md

* fix: added parts of sidebar

* fix: added all APIs

* fix: added version 10.0.0

Co-authored-by: Jack Franklin <jacktfranklin@chromium.org>
2021-08-09 09:57:14 +01:00

2.3 KiB

Home > puppeteer > 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 DevicesMap
errors PuppeteerErrors
networkConditions PredefinedNetworkConditions

Methods

Method Modifiers Description
clearCustomQueryHandlers() Clears all registered handlers.
connect(options) This method attaches Puppeteer to an existing browser instance.
customQueryHandlerNames()
registerCustomQueryHandler(name, queryHandler) Registers a custom query handler. After registration, the handler can be used everywhere where a selector is expected by prepending the selection string with <name>/. The name is only allowed to consist of lower- and upper case latin letters.
unregisterCustomQueryHandler(name)