mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
b4176029d9
* chore: update dependencies
3.1 KiB
3.1 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 | protected |
boolean | |
_isPuppeteerCore | protected |
boolean | |
devices | readonly |
typeof devices | |
errors | readonly |
typeof errors | |
networkConditions | readonly |
typeof networkConditions |
Methods
Method | Modifiers | Description |
---|---|---|
clearCustomQueryHandlers() | ||
connect(options) | This method attaches Puppeteer to an existing browser instance. | |
customQueryHandlerNames() | ||
registerCustomQueryHandler(name, queryHandler) | ||
unregisterCustomQueryHandler(name) |