├── test
├── assets
│ ├── empty.html
│ ├── serviceworkers
│ │ ├── empty
│ │ │ ├── sw.js
│ │ │ └── sw.html
│ │ ├── extension
│ │ │ ├── background.js
│ │ │ └── manifest.json
│ │ └── fetch
│ │ │ ├── style.css
│ │ │ ├── sw.js
│ │ │ └── sw.html
│ ├── simple.json
│ ├── es6
│ │ ├── es6module.js
│ │ ├── es6import.js
│ │ ├── .eslintrc
│ │ └── es6pathimport.js
│ ├── file-to-upload.txt
│ ├── jscoverage
│ │ ├── script1.js
│ │ ├── script2.js
│ │ ├── unused.html
│ │ ├── eval.html
│ │ ├── multiple.html
│ │ ├── sourceurl.html
│ │ ├── simple.html
│ │ └── ranges.html
│ ├── title.html
│ ├── frames
│ │ ├── script.js
│ │ ├── style.css
│ │ ├── one-frame.html
│ │ ├── one-frame-url-fragment.html
│ │ ├── lazy-frame.html
│ │ ├── frame.html
│ │ ├── frameset.html
│ │ └── two-frames.html
│ ├── inner-frame2.html
│ ├── csscoverage
│ │ ├── stylesheet1.css
│ │ ├── empty.html
│ │ ├── stylesheet2.css
│ │ ├── media.html
│ │ ├── Dosis-Regular.ttf
│ │ ├── simple.html
│ │ ├── sourceurl.html
│ │ ├── unused.html
│ │ └── multiple.html
│ ├── global-var.html
│ ├── injectedstyle.css
│ ├── one-style.css
│ ├── cached
│ │ ├── one-style.css
│ │ ├── one-style.html
│ │ ├── one-style-font.html
│ │ └── one-style-font.css
│ ├── tamperable.html
│ ├── csp.html
│ ├── pptr.png
│ ├── digits
│ │ ├── 0.png
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ ├── 4.png
│ │ ├── 5.png
│ │ ├── 6.png
│ │ ├── 7.png
│ │ ├── 8.png
│ │ └── 9.png
│ ├── favicon.ico
│ ├── injectedfile.js
│ ├── mobile.html
│ ├── one-style.html
│ ├── simple-extension
│ │ ├── index.js
│ │ └── content-script.js
│ ├── chromium-linux.zip
│ ├── initiator.html
│ ├── oopif.html
│ ├── historyapi.html
│ ├── self-request.html
│ ├── firefox-75.0a1.en-US.linux-x86_64.tar.bz2
│ ├── popup
│ │ ├── popup.html
│ │ └── window-open.html
│ ├── input
│ │ └── fileupload.html
│ ├── lazy-oopif-frame.html
│ ├── error.html
│ ├── beforeunload.html
│ ├── pdf.html
│ ├── initiator.js
│ ├── worker
│ │ └── worker.html
│ ├── detect-touch.html
│ └── consolelog.html
├── golden-chromium
│ ├── white.jpg
│ ├── grid-cell-0.png
│ ├── grid-cell-1.png
│ ├── grid-cell-2.png
│ ├── grid-cell-3.png
│ ├── transparent.png
│ ├── screenshot-sanity.png
│ ├── mock-binary-response.png
│ ├── screenshot-clip-rect.png
│ ├── screenshot-clip-odd-size.png
│ ├── screenshot-grid-fullpage.png
│ ├── screenshot-clip-rect-scale2.png
│ ├── screenshot-element-rotate.png
│ ├── screenshot-offscreen-clip.png
│ ├── screenshot-element-fractional.png
│ ├── vision-deficiency-protanopia.png
│ ├── vision-deficiency-tritanopia.png
│ ├── screenshot-element-bounding-box.png
│ ├── vision-deficiency-achromatopsia.png
│ ├── vision-deficiency-blurredVision.png
│ ├── vision-deficiency-deuteranopia.png
│ ├── screenshot-element-padding-border.png
│ ├── screenshot-element-fractional-offset.png
│ ├── screenshot-element-scrolled-into-view.png
│ └── screenshot-element-larger-than-viewport.png
├── golden-firefox
│ ├── grid-cell-0.png
│ ├── grid-cell-1.png
│ ├── screenshot-sanity.png
│ ├── screenshot-clip-rect.png
│ ├── screenshot-clip-odd-size.png
│ ├── screenshot-element-rotate.png
│ ├── screenshot-grid-fullpage.png
│ ├── screenshot-offscreen-clip.png
│ ├── screenshot-clip-rect-scale2.png
│ ├── screenshot-element-fractional.png
│ ├── screenshot-element-bounding-box.png
│ ├── screenshot-element-padding-border.png
│ ├── screenshot-element-fractional-offset.png
│ ├── screenshot-element-scrolled-into-view.png
│ └── screenshot-element-larger-than-viewport.png
├── fixtures
│ └── closeme.js
├── src
│ └── diffstyle.css
├── installation
│ ├── assets
│ │ └── puppeteer
│ │ │ └── configuration
│ │ │ └── .puppeteerrc.cjs
│ └── tsconfig.json
├── tsconfig.json
└── .eslintrc.js
├── .npmrc
├── website
├── static
│ ├── .nojekyll
│ ├── CNAME
│ └── img
│ │ └── favicon.ico
├── versions.json
└── versioned_docs
│ └── version-19.2.0
│ ├── assets
│ └── overview.png
│ └── api
│ ├── puppeteer.point.x.md
│ ├── puppeteer.point.y.md
│ ├── puppeteer.eventtype.md
│ ├── puppeteer.handler.md
│ ├── puppeteer.awaitable.md
│ ├── puppeteer.page.mouse.md
│ ├── puppeteer.metrics.nodes.md
│ ├── puppeteer.page.tracing.md
│ ├── puppeteer.boxmodel.width.md
│ ├── puppeteer.metrics.frames.md
│ ├── puppeteer.page.coverage.md
│ ├── puppeteer.page.keyboard.md
│ ├── puppeteer.boxmodel.border.md
│ ├── puppeteer.boxmodel.height.md
│ ├── puppeteer.boxmodel.margin.md
│ ├── puppeteer.device.viewport.md
│ ├── puppeteer.pdfmargin.top.md
│ ├── puppeteer.actionresult.md
│ ├── puppeteer.boxmodel.content.md
│ ├── puppeteer.boxmodel.padding.md
│ ├── puppeteer.device.useragent.md
│ ├── puppeteer.mediafeature.name.md
│ ├── puppeteer.pdfmargin.left.md
│ ├── puppeteer.product.md
│ ├── puppeteer.remoteaddress.ip.md
│ ├── puppeteer.screenshotclip.x.md
│ ├── puppeteer.screenshotclip.y.md
│ ├── puppeteer.mediafeature.value.md
│ ├── puppeteer.metrics.documents.md
│ ├── puppeteer.metrics.timestamp.md
│ ├── puppeteer.page.touchscreen.md
│ ├── puppeteer.pdfmargin.right.md
│ ├── puppeteer.remoteaddress.port.md
│ ├── puppeteer.elementhandle.frame.md
│ ├── puppeteer.metrics.layoutcount.md
│ ├── puppeteer.pdfmargin.bottom.md
│ ├── puppeteer.tracingoptions.path.md
│ ├── puppeteer.browsercontext.id.md
│ ├── puppeteer.credentials.password.md
│ ├── puppeteer.credentials.username.md
│ ├── puppeteer.metrics.taskduration.md
│ ├── puppeteer.mouseoptions.button.md
│ ├── puppeteer.page.accessibility.md
│ ├── puppeteer.pageeventobject.close.md
│ ├── puppeteer.pageeventobject.error.md
│ ├── puppeteer.pageeventobject.load.md
│ ├── puppeteer.pageeventobject.popup.md
│ ├── puppeteer.screenshotclip.width.md
│ ├── puppeteer.target.url.md
│ ├── puppeteer.pageeventobject.dialog.md
│ ├── puppeteer.screenshotclip.height.md
│ ├── puppeteer.evaluation_script_url.md
│ ├── puppeteer.metrics.jsheaptotalsize.md
│ ├── puppeteer.metrics.jsheapusedsize.md
│ ├── puppeteer.metrics.layoutduration.md
│ ├── puppeteer.metrics.scriptduration.md
│ ├── puppeteer.mouseoptions.clickcount.md
│ ├── puppeteer.protocolerror.code.md
│ ├── puppeteer.serializedaxnode.modal.md
│ ├── puppeteer.viewport.width.md
│ ├── puppeteer.connection.url.md
│ ├── puppeteer.metrics.jseventlisteners.md
│ ├── puppeteer.metrics.recalcstylecount.md
│ ├── puppeteer.mousewheeloptions.deltax.md
│ ├── puppeteer.mousewheeloptions.deltay.md
│ ├── puppeteer.networkconditions.upload.md
│ ├── puppeteer.pageeventobject.request.md
│ ├── puppeteer.platform.md
│ ├── puppeteer.productlauncher.product.md
│ ├── puppeteer.serializedaxnode.focused.md
│ ├── puppeteer.viewport.height.md
│ ├── puppeteer.connectioncallback.error.md
│ ├── puppeteer.connectioncallback.method.md
│ ├── puppeteer.connectoptions.browserurl.md
│ ├── puppeteer.networkconditions.latency.md
│ ├── puppeteer.pageeventobject.console.md
│ ├── puppeteer.pageeventobject.pageerror.md
│ ├── puppeteer.pageeventobject.response.md
│ ├── puppeteer.responseforrequest.body.md
│ ├── puppeteer.responseforrequest.status.md
│ ├── puppeteer.serializedaxnode.disabled.md
│ ├── puppeteer.serializedaxnode.expanded.md
│ ├── puppeteer.serializedaxnode.haspopup.md
│ ├── puppeteer.serializedaxnode.readonly.md
│ ├── puppeteer.serializedaxnode.required.md
│ ├── puppeteer.serializedaxnode.selected.md
│ ├── puppeteer.serializedaxnode.valuemax.md
│ ├── puppeteer.serializedaxnode.valuemin.md
│ ├── puppeteer.tracingoptions.categories.md
│ ├── puppeteer.connection.dispose.md
│ ├── puppeteer.frame.url.md
│ ├── puppeteer.networkconditions.download.md
│ ├── puppeteer.serializedaxnode.multiline.md
│ ├── puppeteer.tracingoptions.screenshots.md
│ ├── puppeteer.cdpsessiononmessageobject.id.md
│ ├── puppeteer.connectiontransport.onclose.md
│ ├── puppeteer.connectoptions.transport.md
│ ├── puppeteer.metrics.recalcstyleduration.md
│ ├── puppeteer.page.content.md
│ ├── puppeteer.serializedaxnode.orientation.md
│ ├── puppeteer.boundingbox.width.md
│ ├── puppeteer.coverageentry.url.md
│ ├── puppeteer.mousebutton.md
│ ├── puppeteer.pageeventobject.frameattached.md
│ ├── puppeteer.pageeventobject.framedetached.md
│ ├── puppeteer.puppeteernode.defaultproduct.md
│ ├── puppeteer.serializedaxnode.autocomplete.md
│ ├── puppeteer.boundingbox.height.md
│ ├── puppeteer.browserfetcherrevisioninfo.url.md
│ ├── puppeteer.pageeventobject.framenavigated.md
│ ├── puppeteer.pageeventobject.requestfailed.md
│ ├── puppeteer.pageeventobject.workercreated.md
│ ├── puppeteer.puppeteerlaunchoptions.product.md
│ ├── puppeteer.responseforrequest.contenttype.md
│ ├── puppeteer.cdpsessiononmessageobject.method.md
│ ├── puppeteer.cdpsessiononmessageobject.result.md
│ ├── puppeteer.continuerequestoverrides.method.md
│ ├── puppeteer.coverageentry.text.md
│ ├── puppeteer.offset.x.md
│ ├── puppeteer.offset.y.md
│ ├── puppeteer.pageeventobject.domcontentloaded.md
│ ├── puppeteer.pageeventobject.workerdestroyed.md
│ ├── puppeteer.puppeteererrors.timeouterror.md
│ ├── puppeteer.screenshotclip.scale.md
│ ├── puppeteer.serializedaxnode.level.md
│ ├── puppeteer.targetfiltercallback.md
│ ├── puppeteer.browserfetcherrevisioninfo.local.md
│ ├── puppeteer.cdpsession.id.md
│ ├── puppeteer.clickoptions.button.md
│ ├── puppeteer.connect.md
│ ├── puppeteer.connectoptions.browserwsendpoint.md
│ ├── puppeteer.continuerequestoverrides.postdata.md
│ ├── puppeteer.defaultargs.md
│ ├── puppeteer.interceptresolutionstate.priority.md
│ ├── puppeteer.internalnetworkconditions.offline.md
│ ├── puppeteer.launchoptions.channel.md
│ ├── puppeteer.pageeventobject.requestfinished.md
│ ├── puppeteer.protocolerror.originalmessage.md
│ ├── puppeteer.puppeteererrors.protocolerror.md
│ ├── puppeteer.serializedaxnode.name.md
│ ├── puppeteer.webworker.url.md
│ ├── puppeteer.browserfetcherrevisioninfo.product.md
│ ├── puppeteer.clickoptions.clickcount.md
│ ├── puppeteer.connectiontransport.onmessage.md
│ ├── puppeteer.frame.title.md
│ ├── puppeteer.httprequest.url.md
│ ├── puppeteer.pressoptions.text.md
│ ├── puppeteer.puppeteernode.lastlaunchedproduct.md
│ ├── puppeteer.browserfetcherrevisioninfo.revision.md
│ ├── puppeteer.connectiontransport.close.md
│ ├── puppeteer.customqueryhandler.queryall.md
│ ├── puppeteer.flattenhandle.md
│ ├── puppeteer.httpresponse.url.md
│ ├── puppeteer.interceptresolutionstate.action.md
│ ├── puppeteer.serializedaxnode.value.md
│ ├── puppeteer.waitforoptions.waituntil.md
│ ├── puppeteer.browserfetcherrevisioninfo.folderpath.md
│ ├── puppeteer.cdpsessiononmessageobject.params.md
│ ├── puppeteer.continuerequestoverrides.headers.md
│ ├── puppeteer.customqueryhandler.queryone.md
│ ├── puppeteer.dialog.message.md
│ ├── puppeteer.frame.page.md
│ ├── puppeteer.page.isclosed.md
│ ├── puppeteer.pageeventobject.metrics.md
│ ├── puppeteer.chromereleasechannel.md
│ ├── puppeteer.frameaddscripttagoptions.id.md
│ └── puppeteer.handleor.md
├── packages
├── puppeteer
│ ├── .gitignore
│ └── src
│ │ ├── tsconfig.esm.json
│ │ └── tsconfig.cjs.json
├── puppeteer-core
│ ├── .gitignore
│ ├── src
│ │ ├── templates
│ │ │ ├── version.ts.tmpl
│ │ │ ├── README.md
│ │ │ └── injected.ts.tmpl
│ │ ├── tsconfig.esm.json
│ │ ├── tsconfig.cjs.json
│ │ └── injected
│ │ │ └── README.md
│ ├── tsconfig.json
│ └── third_party
│ │ ├── tsconfig.json
│ │ └── tsconfig.cjs.json
└── testserver
│ └── tsconfig.json
├── .gitattributes
├── .husky
├── pre-comit
├── pre-push
└── commit-msg
├── docs
├── assets
│ └── overview.png
└── api
│ ├── puppeteer.eventtype.md
│ ├── puppeteer.point.x.md
│ ├── puppeteer.point.y.md
│ ├── puppeteer.handler.md
│ ├── puppeteer.page.mouse.md
│ ├── puppeteer.awaitable.md
│ ├── puppeteer.page.tracing.md
│ ├── puppeteer.boxmodel.width.md
│ ├── puppeteer.metrics.nodes.md
│ ├── puppeteer.page.coverage.md
│ ├── puppeteer.page.keyboard.md
│ ├── puppeteer.boxmodel.border.md
│ ├── puppeteer.boxmodel.height.md
│ ├── puppeteer.boxmodel.margin.md
│ ├── puppeteer.metrics.frames.md
│ ├── puppeteer.actionresult.md
│ ├── puppeteer.boxmodel.content.md
│ ├── puppeteer.boxmodel.padding.md
│ ├── puppeteer.device.useragent.md
│ ├── puppeteer.device.viewport.md
│ ├── puppeteer.pdfmargin.left.md
│ ├── puppeteer.pdfmargin.top.md
│ ├── puppeteer.product.md
│ ├── puppeteer.remoteaddress.ip.md
│ ├── puppeteer.screenshotclip.x.md
│ ├── puppeteer.screenshotclip.y.md
│ ├── puppeteer.mediafeature.name.md
│ ├── puppeteer.metrics.documents.md
│ ├── puppeteer.metrics.timestamp.md
│ ├── puppeteer.page.touchscreen.md
│ ├── puppeteer.pdfmargin.right.md
│ ├── puppeteer.mediafeature.value.md
│ ├── puppeteer.pdfmargin.bottom.md
│ ├── puppeteer.remoteaddress.port.md
│ ├── puppeteer.credentials.password.md
│ ├── puppeteer.credentials.username.md
│ ├── puppeteer.elementhandle.frame.md
│ ├── puppeteer.metrics.layoutcount.md
│ ├── puppeteer.metrics.taskduration.md
│ ├── puppeteer.page.accessibility.md
│ ├── puppeteer.pageeventobject.load.md
│ ├── puppeteer.screenshotclip.width.md
│ ├── puppeteer.target.url.md
│ ├── puppeteer.tracingoptions.path.md
│ ├── puppeteer.browsercontext.id.md
│ ├── puppeteer.mouseoptions.button.md
│ ├── puppeteer.pageeventobject.close.md
│ ├── puppeteer.pageeventobject.error.md
│ ├── puppeteer.pageeventobject.popup.md
│ ├── puppeteer.screenshotclip.height.md
│ ├── puppeteer.metrics.jsheapusedsize.md
│ ├── puppeteer.metrics.layoutduration.md
│ ├── puppeteer.metrics.scriptduration.md
│ ├── puppeteer.pageeventobject.dialog.md
│ ├── puppeteer.protocolerror.code.md
│ ├── puppeteer.serializedaxnode.modal.md
│ ├── puppeteer.connection.url.md
│ ├── puppeteer.evaluation_script_url.md
│ ├── puppeteer.metrics.jsheaptotalsize.md
│ ├── puppeteer.mouseoptions.clickcount.md
│ ├── puppeteer.networkconditions.upload.md
│ ├── puppeteer.platform.md
│ ├── puppeteer.productlauncher.product.md
│ ├── puppeteer.viewport.width.md
│ ├── puppeteer.connectioncallback.method.md
│ ├── puppeteer.connectoptions.browserurl.md
│ ├── puppeteer.metrics.jseventlisteners.md
│ ├── puppeteer.metrics.recalcstylecount.md
│ ├── puppeteer.mousewheeloptions.deltax.md
│ ├── puppeteer.mousewheeloptions.deltay.md
│ ├── puppeteer.networkconditions.latency.md
│ ├── puppeteer.pageeventobject.console.md
│ ├── puppeteer.pageeventobject.pageerror.md
│ ├── puppeteer.pageeventobject.request.md
│ ├── puppeteer.responseforrequest.body.md
│ ├── puppeteer.responseforrequest.status.md
│ ├── puppeteer.serializedaxnode.focused.md
│ ├── puppeteer.serializedaxnode.haspopup.md
│ ├── puppeteer.serializedaxnode.valuemax.md
│ ├── puppeteer.serializedaxnode.valuemin.md
│ ├── puppeteer.viewport.height.md
│ ├── puppeteer.connectioncallback.error.md
│ ├── puppeteer.frame.url.md
│ ├── puppeteer.networkconditions.download.md
│ ├── puppeteer.pageeventobject.response.md
│ ├── puppeteer.serializedaxnode.disabled.md
│ ├── puppeteer.serializedaxnode.expanded.md
│ ├── puppeteer.serializedaxnode.multiline.md
│ ├── puppeteer.serializedaxnode.readonly.md
│ ├── puppeteer.serializedaxnode.required.md
│ ├── puppeteer.serializedaxnode.selected.md
│ ├── puppeteer.tracingoptions.categories.md
│ ├── puppeteer.tracingoptions.screenshots.md
│ ├── puppeteer.connection.dispose.md
│ ├── puppeteer.connectoptions.transport.md
│ ├── puppeteer.metrics.recalcstyleduration.md
│ ├── puppeteer.boundingbox.width.md
│ ├── puppeteer.cdpsessiononmessageobject.id.md
│ ├── puppeteer.connectiontransport.onclose.md
│ ├── puppeteer.mousebutton.md
│ ├── puppeteer.page.content.md
│ ├── puppeteer.pageeventobject.frameattached.md
│ ├── puppeteer.pageeventobject.framedetached.md
│ ├── puppeteer.puppeteernode.defaultproduct.md
│ ├── puppeteer.serializedaxnode.orientation.md
│ ├── puppeteer.boundingbox.height.md
│ ├── puppeteer.browserfetcherrevisioninfo.url.md
│ ├── puppeteer.coverageentry.url.md
│ ├── puppeteer.pageeventobject.framenavigated.md
│ ├── puppeteer.pageeventobject.requestfailed.md
│ ├── puppeteer.pageeventobject.workercreated.md
│ ├── puppeteer.responseforrequest.contenttype.md
│ ├── puppeteer.serializedaxnode.autocomplete.md
│ ├── puppeteer.cdpsessiononmessageobject.result.md
│ ├── puppeteer.continuerequestoverrides.method.md
│ ├── puppeteer.coverageentry.text.md
│ ├── puppeteer.puppeteererrors.timeouterror.md
│ ├── puppeteer.puppeteerlaunchoptions.product.md
│ ├── puppeteer.screenshotclip.scale.md
│ ├── puppeteer.serializedaxnode.level.md
│ ├── puppeteer.targetfiltercallback.md
│ ├── puppeteer.browserfetcherrevisioninfo.local.md
│ ├── puppeteer.cdpsession.id.md
│ ├── puppeteer.cdpsessiononmessageobject.method.md
│ ├── puppeteer.clickoptions.button.md
│ ├── puppeteer.connect.md
│ ├── puppeteer.connectoptions.browserwsendpoint.md
│ ├── puppeteer.defaultargs.md
│ ├── puppeteer.offset.x.md
│ ├── puppeteer.offset.y.md
│ ├── puppeteer.pageeventobject.domcontentloaded.md
│ ├── puppeteer.pageeventobject.requestfinished.md
│ ├── puppeteer.pageeventobject.workerdestroyed.md
│ ├── puppeteer.puppeteererrors.protocolerror.md
│ ├── puppeteer.webworker.url.md
│ ├── puppeteer.browserfetcherrevisioninfo.product.md
│ ├── puppeteer.connectiontransport.onmessage.md
│ ├── puppeteer.continuerequestoverrides.postdata.md
│ ├── puppeteer.httprequest.url.md
│ ├── puppeteer.interceptresolutionstate.priority.md
│ ├── puppeteer.internalnetworkconditions.offline.md
│ ├── puppeteer.launchoptions.channel.md
│ ├── puppeteer.pressoptions.text.md
│ ├── puppeteer.protocolerror.originalmessage.md
│ ├── puppeteer.puppeteernode.lastlaunchedproduct.md
│ ├── puppeteer.serializedaxnode.name.md
│ ├── puppeteer.browserfetcherrevisioninfo.revision.md
│ ├── puppeteer.clickoptions.clickcount.md
│ ├── puppeteer.connectiontransport.close.md
│ ├── puppeteer.frame.title.md
│ ├── puppeteer.httpresponse.url.md
│ ├── puppeteer.serializedaxnode.value.md
│ ├── puppeteer.cdpsessiononmessageobject.params.md
│ ├── puppeteer.continuerequestoverrides.headers.md
│ ├── puppeteer.customqueryhandler.queryall.md
│ ├── puppeteer.dialog.message.md
│ ├── puppeteer.flattenhandle.md
│ ├── puppeteer.frame.page.md
│ ├── puppeteer.interceptresolutionstate.action.md
│ ├── puppeteer.page.isclosed.md
│ ├── puppeteer.waitforoptions.waituntil.md
│ ├── puppeteer.browserfetcherrevisioninfo.folderpath.md
│ ├── puppeteer.customqueryhandler.queryone.md
│ ├── puppeteer.frameaddscripttagoptions.id.md
│ ├── puppeteer.pageeventobject.metrics.md
│ ├── puppeteer.chromereleasechannel.md
│ ├── puppeteer.dialog.type.md
│ ├── puppeteer.frameaddscripttagoptions.url.md
│ ├── puppeteer.geolocationoptions.latitude.md
│ ├── puppeteer.geolocationoptions.longitude.md
│ ├── puppeteer.handleor.md
│ ├── puppeteer.httprequest.client.md
│ ├── puppeteer.pdfoptions.timeout.md
│ ├── puppeteer.resourcetype.md
│ ├── puppeteer.screenshotoptions.type.md
│ ├── puppeteer.serializedaxnode.valuetext.md
│ ├── puppeteer.browserfetcher.host.md
│ ├── puppeteer.browserfetcheroptions.path.md
│ ├── puppeteer.consolemessage.text.md
│ ├── puppeteer.frameaddstyletagoptions.url.md
│ ├── puppeteer.geolocationoptions.accuracy.md
│ ├── puppeteer.httprequest.method.md
│ ├── puppeteer.page.target.md
│ ├── puppeteer.pageeventobject.requestservedfromcache.md
│ ├── puppeteer.pdfoptions.width.md
│ ├── puppeteer.pressoptions.delay.md
│ ├── puppeteer.browserfetcherrevisioninfo.executablepath.md
│ ├── puppeteer.page.browser.md
│ ├── puppeteer.pdfoptions.height.md
│ ├── puppeteer.pdfoptions.margin.md
│ ├── puppeteer.serializedaxnode.children.md
│ ├── puppeteer.serializedaxnode.invalid.md
│ ├── puppeteer.serializedaxnode.role.md
│ ├── puppeteer.browser.isconnected.md
│ ├── puppeteer.browserlaunchargumentoptions.debuggingport.md
│ ├── puppeteer.clickoptions.offset.md
│ ├── puppeteer.consolemessagelocation.url.md
│ ├── puppeteer.executablepath.md
│ ├── puppeteer.launch.md
│ ├── puppeteer.page.frames.md
│ ├── puppeteer.page.getdefaulttimeout.md
│ ├── puppeteer.page.url.md
│ ├── puppeteer.protocollifecycleevent.md
│ ├── puppeteer.puppeteerlifecycleevent.md
│ ├── puppeteer.screenshotoptions.clip.md
│ ├── puppeteer.serializedaxnode.pressed.md
│ ├── puppeteer.browser.target.md
│ ├── puppeteer.configuration.experiments.md
│ ├── puppeteer.filechooser.cancel.md
│ ├── puppeteer.frame.childframes.md
│ ├── puppeteer.frame.isdetached.md
│ ├── puppeteer.innerparams.md
│ ├── puppeteer.launchoptions.product.md
│ ├── puppeteer.target.browser.md
│ ├── puppeteer.viewport.hastouch.md
│ ├── puppeteer.csscoverage.stop.md
│ ├── puppeteer.httpresponse.ok.md
│ ├── puppeteer.jshandle.___jshandlesymbol_.md
│ ├── puppeteer.page.bringtofront.md
│ ├── puppeteer.puppeteerlaunchoptions.extraprefsfirefox.md
│ ├── puppeteer.screenshotoptions.quality.md
│ ├── puppeteer.serializedaxnode.description.md
│ ├── puppeteer.serializedaxnode.keyshortcuts.md
│ ├── puppeteer.cdpsession.connection.md
│ ├── puppeteer.continuerequestoverrides.url.md
│ ├── puppeteer.frameaddscripttagoptions.content.md
│ ├── puppeteer.frameaddstyletagoptions.content.md
│ ├── puppeteer.httpresponse.status.md
│ ├── puppeteer.jscoverage.stop.md
│ ├── puppeteer.pdfoptions.landscape.md
│ ├── puppeteer.securitydetails.issuer.md
│ ├── puppeteer.serializedaxnode.multiselectable.md
│ ├── puppeteer.serializedaxnode.roledescription.md
│ └── puppeteer.viewport.ismobile.md
├── tools
├── tsconfig.json
└── mochaRunner
│ └── tsconfig.json
├── .github
├── release-please.yml
└── ISSUE_TEMPLATE
│ └── config.yml
├── .release-please-manifest.json
├── .editorconfig
├── docker
└── test
│ └── smoke-test.js
└── .prettierrc.cjs
/test/assets/empty.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | access=public
2 |
--------------------------------------------------------------------------------
/website/static/.nojekyll:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/website/static/CNAME:
--------------------------------------------------------------------------------
1 | pptr.dev
--------------------------------------------------------------------------------
/packages/puppeteer/.gitignore:
--------------------------------------------------------------------------------
1 | README.md
--------------------------------------------------------------------------------
/test/assets/serviceworkers/empty/sw.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/website/versions.json:
--------------------------------------------------------------------------------
1 | ["19.2.0"]
2 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/.gitignore:
--------------------------------------------------------------------------------
1 | README.md
--------------------------------------------------------------------------------
/test/assets/simple.json:
--------------------------------------------------------------------------------
1 | {"foo": "bar"}
2 |
--------------------------------------------------------------------------------
/test/assets/es6/es6module.js:
--------------------------------------------------------------------------------
1 | export default 42;
2 |
--------------------------------------------------------------------------------
/test/assets/file-to-upload.txt:
--------------------------------------------------------------------------------
1 | contents of the file
--------------------------------------------------------------------------------
/test/assets/jscoverage/script1.js:
--------------------------------------------------------------------------------
1 | console.log(3);
2 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/script2.js:
--------------------------------------------------------------------------------
1 | console.log(3);
2 |
--------------------------------------------------------------------------------
/test/assets/title.html:
--------------------------------------------------------------------------------
1 |
Woof-Woof
2 |
--------------------------------------------------------------------------------
/test/assets/frames/script.js:
--------------------------------------------------------------------------------
1 | console.log('Cheers!');
2 |
--------------------------------------------------------------------------------
/test/assets/inner-frame2.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/serviceworkers/extension/background.js:
--------------------------------------------------------------------------------
1 | // empty
2 |
--------------------------------------------------------------------------------
/test/assets/frames/style.css:
--------------------------------------------------------------------------------
1 | div {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/stylesheet1.css:
--------------------------------------------------------------------------------
1 | body {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/assets/frames/one-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/global-var.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/assets/injectedstyle.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/unused.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/one-style.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: pink;
3 | }
4 |
--------------------------------------------------------------------------------
/test/assets/cached/one-style.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: pink;
3 | }
4 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/eval.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/empty.html:
--------------------------------------------------------------------------------
1 |
2 | empty style tag
3 |
4 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/stylesheet2.css:
--------------------------------------------------------------------------------
1 | html {
2 | margin: 0;
3 | padding: 0;
4 | }
5 |
--------------------------------------------------------------------------------
/test/assets/serviceworkers/fetch/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: pink;
3 | }
4 |
--------------------------------------------------------------------------------
/test/assets/tamperable.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Declare files that will always have LF line endings on checkout.
2 | *.txt eol=lf
--------------------------------------------------------------------------------
/.husky/pre-comit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | npm run lint:eslint
5 |
--------------------------------------------------------------------------------
/test/assets/csp.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/es6/es6import.js:
--------------------------------------------------------------------------------
1 | import num from './es6module.js';
2 | window.__es6injected = num;
3 |
--------------------------------------------------------------------------------
/test/assets/pptr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/pptr.png
--------------------------------------------------------------------------------
/.husky/pre-push:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | npm run lint && npm run check
5 |
--------------------------------------------------------------------------------
/docs/assets/overview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/docs/assets/overview.png
--------------------------------------------------------------------------------
/test/assets/digits/0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/0.png
--------------------------------------------------------------------------------
/test/assets/digits/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/1.png
--------------------------------------------------------------------------------
/test/assets/digits/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/2.png
--------------------------------------------------------------------------------
/test/assets/digits/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/3.png
--------------------------------------------------------------------------------
/test/assets/digits/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/4.png
--------------------------------------------------------------------------------
/test/assets/digits/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/5.png
--------------------------------------------------------------------------------
/test/assets/digits/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/6.png
--------------------------------------------------------------------------------
/test/assets/digits/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/7.png
--------------------------------------------------------------------------------
/test/assets/digits/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/8.png
--------------------------------------------------------------------------------
/test/assets/digits/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/digits/9.png
--------------------------------------------------------------------------------
/test/assets/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/favicon.ico
--------------------------------------------------------------------------------
/test/assets/injectedfile.js:
--------------------------------------------------------------------------------
1 | window.__injected = 42;
2 | window.__injectedError = new Error('hi');
3 |
--------------------------------------------------------------------------------
/test/assets/mobile.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/es6/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "parserOptions": {
3 | "sourceType": "module"
4 | }
5 | }
--------------------------------------------------------------------------------
/test/assets/es6/es6pathimport.js:
--------------------------------------------------------------------------------
1 | import num from './es6/es6module.js';
2 | window.__es6injected = num;
3 |
--------------------------------------------------------------------------------
/test/assets/frames/one-frame-url-fragment.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/assets/one-style.html:
--------------------------------------------------------------------------------
1 |
2 | hello, world!
3 |
--------------------------------------------------------------------------------
/test/assets/simple-extension/index.js:
--------------------------------------------------------------------------------
1 | // Mock script for background extension
2 | window.MAGIC = 42;
3 |
--------------------------------------------------------------------------------
/tools/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "files": ["../package.json"]
4 | }
5 |
--------------------------------------------------------------------------------
/test/assets/cached/one-style.html:
--------------------------------------------------------------------------------
1 |
2 | hello, world!
3 |
--------------------------------------------------------------------------------
/.github/release-please.yml:
--------------------------------------------------------------------------------
1 | releaseType: node
2 | primaryBranch: main
3 | handleGHRelease: true
4 | manifest: true
5 |
--------------------------------------------------------------------------------
/.husky/commit-msg:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | npx --no-install commitlint --edit "$1"
5 |
--------------------------------------------------------------------------------
/test/assets/chromium-linux.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/chromium-linux.zip
--------------------------------------------------------------------------------
/test/assets/initiator.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/multiple.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/sourceurl.html:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/test/golden-chromium/white.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/white.jpg
--------------------------------------------------------------------------------
/website/static/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/website/static/img/favicon.ico
--------------------------------------------------------------------------------
/test/assets/cached/one-style-font.html:
--------------------------------------------------------------------------------
1 |
2 | hello, world!
3 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/simple.html:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/test/assets/oopif.html:
--------------------------------------------------------------------------------
1 | Navigate within document
2 |
--------------------------------------------------------------------------------
/test/golden-chromium/grid-cell-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/grid-cell-0.png
--------------------------------------------------------------------------------
/test/golden-chromium/grid-cell-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/grid-cell-1.png
--------------------------------------------------------------------------------
/test/golden-chromium/grid-cell-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/grid-cell-2.png
--------------------------------------------------------------------------------
/test/golden-chromium/grid-cell-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/grid-cell-3.png
--------------------------------------------------------------------------------
/test/golden-chromium/transparent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/transparent.png
--------------------------------------------------------------------------------
/test/golden-firefox/grid-cell-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/grid-cell-0.png
--------------------------------------------------------------------------------
/test/golden-firefox/grid-cell-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/grid-cell-1.png
--------------------------------------------------------------------------------
/test/assets/csscoverage/media.html:
--------------------------------------------------------------------------------
1 |
3 | hello, world
4 |
5 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/Dosis-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/csscoverage/Dosis-Regular.ttf
--------------------------------------------------------------------------------
/test/assets/simple-extension/content-script.js:
--------------------------------------------------------------------------------
1 | console.log('hey from the content-script');
2 | self.thisIsTheContentScript = true;
3 |
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-sanity.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-sanity.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-sanity.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-sanity.png
--------------------------------------------------------------------------------
/packages/puppeteer-core/src/templates/version.ts.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * @internal
3 | */
4 | export const packageVersion = 'PACKAGE_VERSION';
5 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/simple.html:
--------------------------------------------------------------------------------
1 |
5 | hello, world
6 |
7 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/sourceurl.html:
--------------------------------------------------------------------------------
1 |
7 |
8 |
--------------------------------------------------------------------------------
/test/assets/jscoverage/ranges.html:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-clip-rect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-clip-rect.png
--------------------------------------------------------------------------------
/test/assets/serviceworkers/empty/sw.html:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/test/golden-chromium/mock-binary-response.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/mock-binary-response.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-clip-rect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-clip-rect.png
--------------------------------------------------------------------------------
/test/assets/csscoverage/unused.html:
--------------------------------------------------------------------------------
1 |
7 |
8 |
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-clip-odd-size.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-clip-odd-size.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-grid-fullpage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-grid-fullpage.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-clip-odd-size.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-clip-odd-size.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-rotate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-rotate.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-grid-fullpage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-grid-fullpage.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-offscreen-clip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-offscreen-clip.png
--------------------------------------------------------------------------------
/test/assets/historyapi.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/test/assets/self-request.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-clip-rect-scale2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-clip-rect-scale2.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-rotate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-rotate.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-offscreen-clip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-offscreen-clip.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-clip-rect-scale2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-clip-rect-scale2.png
--------------------------------------------------------------------------------
/.release-please-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "packages/puppeteer": "19.2.0",
3 | "packages/puppeteer-core": "19.2.0",
4 | "packages/testserver": "0.6.0"
5 | }
6 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/src/templates/README.md:
--------------------------------------------------------------------------------
1 | # Templated Artifacts
2 |
3 | These files are generated as TypeScript files in the `src/generated` folder.
4 |
--------------------------------------------------------------------------------
/test/assets/firefox-75.0a1.en-US.linux-x86_64.tar.bz2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/assets/firefox-75.0a1.en-US.linux-x86_64.tar.bz2
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-fractional.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-fractional.png
--------------------------------------------------------------------------------
/test/golden-chromium/vision-deficiency-protanopia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/vision-deficiency-protanopia.png
--------------------------------------------------------------------------------
/test/golden-chromium/vision-deficiency-tritanopia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/vision-deficiency-tritanopia.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-fractional.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-fractional.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-bounding-box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-bounding-box.png
--------------------------------------------------------------------------------
/test/golden-chromium/vision-deficiency-achromatopsia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/vision-deficiency-achromatopsia.png
--------------------------------------------------------------------------------
/test/golden-chromium/vision-deficiency-blurredVision.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/vision-deficiency-blurredVision.png
--------------------------------------------------------------------------------
/test/golden-chromium/vision-deficiency-deuteranopia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/vision-deficiency-deuteranopia.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-bounding-box.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-bounding-box.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-padding-border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-padding-border.png
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/assets/overview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/website/versioned_docs/version-19.2.0/assets/overview.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-padding-border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-padding-border.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-fractional-offset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-fractional-offset.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-scrolled-into-view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-scrolled-into-view.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-fractional-offset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-fractional-offset.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-scrolled-into-view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-scrolled-into-view.png
--------------------------------------------------------------------------------
/test/golden-chromium/screenshot-element-larger-than-viewport.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-chromium/screenshot-element-larger-than-viewport.png
--------------------------------------------------------------------------------
/test/golden-firefox/screenshot-element-larger-than-viewport.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doyen001/puppeteer/HEAD/test/golden-firefox/screenshot-element-larger-than-viewport.png
--------------------------------------------------------------------------------
/test/assets/popup/popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Popup
5 |
6 |
7 | I am a popup
8 |
9 |
10 |
--------------------------------------------------------------------------------
/test/assets/input/fileupload.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | File upload test
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.eventtype.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: EventType
3 | ---
4 |
5 | # EventType type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | declare type EventType = string | symbol;
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.point.x.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Point.x
3 | ---
4 |
5 | # Point.x property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Point {
11 | x: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.point.y.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Point.y
3 | ---
4 |
5 | # Point.y property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Point {
11 | y: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/packages/puppeteer/src/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../lib/esm/puppeteer",
5 | "moduleResolution": "NodeNext"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/test/assets/frames/lazy-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/assets/lazy-oopif-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.handler.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Handler
3 | ---
4 |
5 | # Handler type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | declare type Handler = (event?: T) => void;
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.mouse.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.mouse
3 | ---
4 |
5 | # Page.mouse property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get mouse(): Mouse;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "files": [],
4 | "references": [
5 | {"path": "src/tsconfig.esm.json"},
6 | {"path": "src/tsconfig.cjs.json"}
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.awaitable.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Awaitable
3 | ---
4 |
5 | # Awaitable type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type Awaitable = T | PromiseLike;
11 | ```
12 |
--------------------------------------------------------------------------------
/test/assets/error.html:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/test/fixtures/closeme.js:
--------------------------------------------------------------------------------
1 | (async () => {
2 | const [, , puppeteerRoot, options] = process.argv;
3 | const browser = await require(puppeteerRoot).launch(JSON.parse(options));
4 | console.log(browser.wsEndpoint());
5 | })();
6 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.tracing.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.tracing
3 | ---
4 |
5 | # Page.tracing property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get tracing(): Tracing;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/test/assets/frames/frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 | Hi, I'm frame
9 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boxmodel.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.width
3 | ---
4 |
5 | # BoxModel.width property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | width: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.nodes.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Nodes
3 | ---
4 |
5 | # Metrics.Nodes property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Nodes?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.coverage.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.coverage
3 | ---
4 |
5 | # Page.coverage property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get coverage(): Coverage;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.keyboard.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.keyboard
3 | ---
4 |
5 | # Page.keyboard property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get keyboard(): Keyboard;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boxmodel.border.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.border
3 | ---
4 |
5 | # BoxModel.border property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | border: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boxmodel.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.height
3 | ---
4 |
5 | # BoxModel.height property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | height: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boxmodel.margin.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.margin
3 | ---
4 |
5 | # BoxModel.margin property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | margin: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.frames.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Frames
3 | ---
4 |
5 | # Metrics.Frames property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Frames?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/src/tsconfig.esm.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "../lib/esm/puppeteer"
5 | },
6 | "references": [{"path": "../third_party/tsconfig.json"}]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/third_party/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "declarationMap": false,
5 | "outDir": "../lib/esm/third_party",
6 | "sourceMap": false
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/puppeteer/src/tsconfig.cjs.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "module": "CommonJS",
5 | "moduleResolution": "NodeNext",
6 | "outDir": "../lib/cjs/puppeteer"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/test/assets/frames/frameset.html:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/test/assets/serviceworkers/fetch/sw.js:
--------------------------------------------------------------------------------
1 | self.addEventListener('fetch', (event) => {
2 | event.respondWith(fetch(event.request));
3 | });
4 |
5 | self.addEventListener('activate', (event) => {
6 | event.waitUntil(clients.claim());
7 | });
8 |
--------------------------------------------------------------------------------
/test/src/diffstyle.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: monospace;
3 | white-space: pre;
4 | }
5 |
6 | ins {
7 | background-color: #9cffa0;
8 | text-decoration: none;
9 | }
10 |
11 | del {
12 | background-color: #ff9e9e;
13 | }
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.point.x.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Point.x
3 | ---
4 |
5 | # Point.x property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Point {
11 | x: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.point.y.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Point.y
3 | ---
4 |
5 | # Point.y property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Point {
11 | y: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.actionresult.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ActionResult
3 | ---
4 |
5 | # ActionResult type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type ActionResult = 'continue' | 'abort' | 'respond';
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boxmodel.content.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.content
3 | ---
4 |
5 | # BoxModel.content property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | content: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boxmodel.padding.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.padding
3 | ---
4 |
5 | # BoxModel.padding property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | padding: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.device.useragent.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Device.userAgent
3 | ---
4 |
5 | # Device.userAgent property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Device {
11 | userAgent: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.device.viewport.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Device.viewport
3 | ---
4 |
5 | # Device.viewport property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Device {
11 | viewport: Viewport;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfmargin.left.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.left
3 | ---
4 |
5 | # PDFMargin.left property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | left?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfmargin.top.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.top
3 | ---
4 |
5 | # PDFMargin.top property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | top?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Product
3 | ---
4 |
5 | # Product type
6 |
7 | Supported products.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | export declare type Product = 'chrome' | 'firefox';
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.remoteaddress.ip.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: RemoteAddress.ip
3 | ---
4 |
5 | # RemoteAddress.ip property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface RemoteAddress {
11 | ip?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotclip.x.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.x
3 | ---
4 |
5 | # ScreenshotClip.x property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | x: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotclip.y.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.y
3 | ---
4 |
5 | # ScreenshotClip.y property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | y: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/third_party/tsconfig.cjs.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "declarationMap": false,
5 | "outDir": "../lib/cjs/third_party",
6 | "sourceMap": false
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/test/assets/cached/one-style-font.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'one-style';
3 | src: url('./one-style.woff') format('woff');
4 | }
5 |
6 | body {
7 | background-color: pink;
8 | font-family: 'one-style', sans-serif;
9 | }
10 |
--------------------------------------------------------------------------------
/test/assets/popup/window-open.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Popup test
5 |
6 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.eventtype.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: EventType
3 | ---
4 |
5 | # EventType type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | declare type EventType = string | symbol;
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mediafeature.name.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MediaFeature.name
3 | ---
4 |
5 | # MediaFeature.name property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MediaFeature {
11 | name: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.documents.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Documents
3 | ---
4 |
5 | # Metrics.Documents property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Documents?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.timestamp.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Timestamp
3 | ---
4 |
5 | # Metrics.Timestamp property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Timestamp?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.touchscreen.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.touchscreen
3 | ---
4 |
5 | # Page.touchscreen property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get touchscreen(): Touchscreen;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfmargin.right.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.right
3 | ---
4 |
5 | # PDFMargin.right property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | right?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.handler.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Handler
3 | ---
4 |
5 | # Handler type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | declare type Handler = (event?: T) => void;
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mediafeature.value.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MediaFeature.value
3 | ---
4 |
5 | # MediaFeature.value property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MediaFeature {
11 | value: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfmargin.bottom.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.bottom
3 | ---
4 |
5 | # PDFMargin.bottom property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | bottom?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.remoteaddress.port.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: RemoteAddress.port
3 | ---
4 |
5 | # RemoteAddress.port property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface RemoteAddress {
11 | port?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.awaitable.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Awaitable
3 | ---
4 |
5 | # Awaitable type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type Awaitable = T | PromiseLike;
11 | ```
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.mouse.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.mouse
3 | ---
4 |
5 | # Page.mouse property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get mouse(): Mouse;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.credentials.password.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Credentials.password
3 | ---
4 |
5 | # Credentials.password property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Credentials {
11 | password: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.credentials.username.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Credentials.username
3 | ---
4 |
5 | # Credentials.username property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Credentials {
11 | username: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.elementhandle.frame.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ElementHandle.frame
3 | ---
4 |
5 | # ElementHandle.frame property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ElementHandle {
11 | get frame(): Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.layoutcount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.LayoutCount
3 | ---
4 |
5 | # Metrics.LayoutCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | LayoutCount?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.taskduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.TaskDuration
3 | ---
4 |
5 | # Metrics.TaskDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | TaskDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.accessibility.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.accessibility
3 | ---
4 |
5 | # Page.accessibility property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get accessibility(): Accessibility;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.load.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.load
3 | ---
4 |
5 | # PageEventObject.load property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | load: never;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotclip.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.width
3 | ---
4 |
5 | # ScreenshotClip.width property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | width: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.target.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Target.url
3 | ---
4 |
5 | # Target.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Target {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.tracingoptions.path.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TracingOptions.path
3 | ---
4 |
5 | # TracingOptions.path property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface TracingOptions {
11 | path?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browsercontext.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserContext.id
3 | ---
4 |
5 | # BrowserContext.id property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class BrowserContext {
11 | get id(): string | undefined;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mouseoptions.button.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseOptions.button
3 | ---
4 |
5 | # MouseOptions.button property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseOptions {
11 | button?: MouseButton;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.close.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.close
3 | ---
4 |
5 | # PageEventObject.close property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | close: never;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.error.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.error
3 | ---
4 |
5 | # PageEventObject.error property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | error: Error;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.popup.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.popup
3 | ---
4 |
5 | # PageEventObject.popup property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | popup: Page;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotclip.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.height
3 | ---
4 |
5 | # ScreenshotClip.height property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | height: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/test/installation/assets/puppeteer/configuration/.puppeteerrc.cjs:
--------------------------------------------------------------------------------
1 | const {join} = require('path');
2 |
3 | /**
4 | * @type {import("puppeteer").PuppeteerConfiguration}
5 | */
6 | module.exports = {
7 | cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
8 | };
9 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.nodes.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Nodes
3 | ---
4 |
5 | # Metrics.Nodes property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Nodes?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.tracing.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.tracing
3 | ---
4 |
5 | # Page.tracing property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get tracing(): Tracing;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.jsheapusedsize.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.JSHeapUsedSize
3 | ---
4 |
5 | # Metrics.JSHeapUsedSize property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | JSHeapUsedSize?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.layoutduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.LayoutDuration
3 | ---
4 |
5 | # Metrics.LayoutDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | LayoutDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.scriptduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.ScriptDuration
3 | ---
4 |
5 | # Metrics.ScriptDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | ScriptDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.dialog.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.dialog
3 | ---
4 |
5 | # PageEventObject.dialog property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | dialog: Dialog;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.protocolerror.code.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProtocolError.code
3 | ---
4 |
5 | # ProtocolError.code property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ProtocolError {
11 | set code(code: number | undefined);
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.modal.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.modal
3 | ---
4 |
5 | # SerializedAXNode.modal property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | modal?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/test/assets/beforeunload.html:
--------------------------------------------------------------------------------
1 | beforeunload demo.
2 |
10 |
11 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boxmodel.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.width
3 | ---
4 |
5 | # BoxModel.width property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | width: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.frames.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Frames
3 | ---
4 |
5 | # Metrics.Frames property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Frames?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.coverage.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.coverage
3 | ---
4 |
5 | # Page.coverage property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get coverage(): Coverage;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.keyboard.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.keyboard
3 | ---
4 |
5 | # Page.keyboard property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get keyboard(): Keyboard;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connection.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Connection.url
3 | ---
4 |
5 | # Connection.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Connection {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.evaluation_script_url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: EVALUATION_SCRIPT_URL
3 | ---
4 |
5 | # EVALUATION_SCRIPT_URL variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | EVALUATION_SCRIPT_URL = 'pptr://__puppeteer_evaluation_script__';
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.jsheaptotalsize.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.JSHeapTotalSize
3 | ---
4 |
5 | # Metrics.JSHeapTotalSize property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | JSHeapTotalSize?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mouseoptions.clickcount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseOptions.clickCount
3 | ---
4 |
5 | # MouseOptions.clickCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseOptions {
11 | clickCount?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.networkconditions.upload.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: NetworkConditions.upload
3 | ---
4 |
5 | # NetworkConditions.upload property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface NetworkConditions {
11 | upload: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.platform.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Platform
3 | ---
4 |
5 | # Platform type
6 |
7 | Supported platforms.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | export declare type Platform = 'linux' | 'mac' | 'mac_arm' | 'win32' | 'win64';
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.productlauncher.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProductLauncher.product
3 | ---
4 |
5 | # ProductLauncher.product property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ProductLauncher {
11 | get product(): Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.viewport.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Viewport.width
3 | ---
4 |
5 | # Viewport.width property
6 |
7 | The page width in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Viewport {
13 | width: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/src/tsconfig.cjs.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "module": "CommonJS",
5 | "outDir": "../lib/cjs/puppeteer"
6 | },
7 | "references": [{"path": "../third_party/tsconfig.cjs.json"}]
8 | }
9 |
--------------------------------------------------------------------------------
/test/assets/serviceworkers/extension/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Simple extension",
3 | "version": "0.1",
4 | "background": {
5 | "service_worker": "background.js"
6 | },
7 | "permissions": ["background", "activeTab"],
8 | "manifest_version": 3
9 | }
10 |
--------------------------------------------------------------------------------
/test/installation/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "module": "NodeNext",
5 | "moduleResolution": "NodeNext",
6 | "outDir": "build",
7 | "rootDir": "src"
8 | },
9 | "include": ["src"]
10 | }
11 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boxmodel.border.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.border
3 | ---
4 |
5 | # BoxModel.border property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | border: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boxmodel.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.height
3 | ---
4 |
5 | # BoxModel.height property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | height: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boxmodel.margin.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.margin
3 | ---
4 |
5 | # BoxModel.margin property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | margin: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.device.viewport.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Device.viewport
3 | ---
4 |
5 | # Device.viewport property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Device {
11 | viewport: Viewport;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pdfmargin.top.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.top
3 | ---
4 |
5 | # PDFMargin.top property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | top?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectioncallback.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionCallback.method
3 | ---
4 |
5 | # ConnectionCallback.method property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionCallback {
11 | method: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectoptions.browserurl.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectOptions.browserURL
3 | ---
4 |
5 | # ConnectOptions.browserURL property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectOptions {
11 | browserURL?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.jseventlisteners.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.JSEventListeners
3 | ---
4 |
5 | # Metrics.JSEventListeners property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | JSEventListeners?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.recalcstylecount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.RecalcStyleCount
3 | ---
4 |
5 | # Metrics.RecalcStyleCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | RecalcStyleCount?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mousewheeloptions.deltax.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseWheelOptions.deltaX
3 | ---
4 |
5 | # MouseWheelOptions.deltaX property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseWheelOptions {
11 | deltaX?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mousewheeloptions.deltay.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseWheelOptions.deltaY
3 | ---
4 |
5 | # MouseWheelOptions.deltaY property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseWheelOptions {
11 | deltaY?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.networkconditions.latency.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: NetworkConditions.latency
3 | ---
4 |
5 | # NetworkConditions.latency property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface NetworkConditions {
11 | latency: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.console.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.console
3 | ---
4 |
5 | # PageEventObject.console property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | console: ConsoleMessage;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.pageerror.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.pageerror
3 | ---
4 |
5 | # PageEventObject.pageerror property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | pageerror: Error;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.request.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.request
3 | ---
4 |
5 | # PageEventObject.request property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | request: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.responseforrequest.body.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResponseForRequest.body
3 | ---
4 |
5 | # ResponseForRequest.body property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ResponseForRequest {
11 | body: string | Buffer;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.responseforrequest.status.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResponseForRequest.status
3 | ---
4 |
5 | # ResponseForRequest.status property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ResponseForRequest {
11 | status: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.focused.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.focused
3 | ---
4 |
5 | # SerializedAXNode.focused property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | focused?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.haspopup.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.haspopup
3 | ---
4 |
5 | # SerializedAXNode.haspopup property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | haspopup?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.valuemax.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.valuemax
3 | ---
4 |
5 | # SerializedAXNode.valuemax property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | valuemax?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.valuemin.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.valuemin
3 | ---
4 |
5 | # SerializedAXNode.valuemin property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | valuemin?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.viewport.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Viewport.height
3 | ---
4 |
5 | # Viewport.height property
6 |
7 | The page height in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Viewport {
13 | height: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.actionresult.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ActionResult
3 | ---
4 |
5 | # ActionResult type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type ActionResult = 'continue' | 'abort' | 'respond';
11 | ```
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boxmodel.content.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.content
3 | ---
4 |
5 | # BoxModel.content property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | content: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boxmodel.padding.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoxModel.padding
3 | ---
4 |
5 | # BoxModel.padding property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BoxModel {
11 | padding: Point[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.device.useragent.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Device.userAgent
3 | ---
4 |
5 | # Device.userAgent property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Device {
11 | userAgent: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mediafeature.name.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MediaFeature.name
3 | ---
4 |
5 | # MediaFeature.name property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MediaFeature {
11 | name: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pdfmargin.left.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.left
3 | ---
4 |
5 | # PDFMargin.left property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | left?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Product
3 | ---
4 |
5 | # Product type
6 |
7 | Supported products.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | export declare type Product = 'chrome' | 'firefox';
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.remoteaddress.ip.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: RemoteAddress.ip
3 | ---
4 |
5 | # RemoteAddress.ip property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface RemoteAddress {
11 | ip?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.screenshotclip.x.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.x
3 | ---
4 |
5 | # ScreenshotClip.x property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | x: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.screenshotclip.y.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.y
3 | ---
4 |
5 | # ScreenshotClip.y property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | y: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectioncallback.error.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionCallback.error
3 | ---
4 |
5 | # ConnectionCallback.error property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionCallback {
11 | error: ProtocolError;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frame.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.url
3 | ---
4 |
5 | # Frame.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The frame's URL.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.networkconditions.download.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: NetworkConditions.download
3 | ---
4 |
5 | # NetworkConditions.download property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface NetworkConditions {
11 | download: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.response.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.response
3 | ---
4 |
5 | # PageEventObject.response property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | response: HTTPResponse;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.disabled.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.disabled
3 | ---
4 |
5 | # SerializedAXNode.disabled property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | disabled?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.expanded.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.expanded
3 | ---
4 |
5 | # SerializedAXNode.expanded property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | expanded?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.multiline.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.multiline
3 | ---
4 |
5 | # SerializedAXNode.multiline property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | multiline?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.readonly.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.readonly
3 | ---
4 |
5 | # SerializedAXNode.readonly property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | readonly?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.required.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.required
3 | ---
4 |
5 | # SerializedAXNode.required property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | required?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.selected.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.selected
3 | ---
4 |
5 | # SerializedAXNode.selected property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | selected?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.tracingoptions.categories.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TracingOptions.categories
3 | ---
4 |
5 | # TracingOptions.categories property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface TracingOptions {
11 | categories?: string[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.tracingoptions.screenshots.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TracingOptions.screenshots
3 | ---
4 |
5 | # TracingOptions.screenshots property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface TracingOptions {
11 | screenshots?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/tools/mochaRunner/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "composite": true,
6 | "module": "CommonJS",
7 | "outDir": "lib",
8 | "rootDir": "src"
9 | },
10 | "include": ["src"]
11 | }
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mediafeature.value.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MediaFeature.value
3 | ---
4 |
5 | # MediaFeature.value property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MediaFeature {
11 | value: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.documents.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Documents
3 | ---
4 |
5 | # Metrics.Documents property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Documents?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.timestamp.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.Timestamp
3 | ---
4 |
5 | # Metrics.Timestamp property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | Timestamp?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.touchscreen.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.touchscreen
3 | ---
4 |
5 | # Page.touchscreen property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get touchscreen(): Touchscreen;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pdfmargin.right.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.right
3 | ---
4 |
5 | # PDFMargin.right property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | right?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.remoteaddress.port.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: RemoteAddress.port
3 | ---
4 |
5 | # RemoteAddress.port property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface RemoteAddress {
11 | port?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connection.dispose.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Connection.dispose
3 | ---
4 |
5 | # Connection.dispose() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Connection {
11 | dispose(): void;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | void
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectoptions.transport.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectOptions.transport
3 | ---
4 |
5 | # ConnectOptions.transport property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectOptions {
11 | transport?: ConnectionTransport;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.metrics.recalcstyleduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.RecalcStyleDuration
3 | ---
4 |
5 | # Metrics.RecalcStyleDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | RecalcStyleDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/packages/testserver/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "allowJs": true,
5 | "composite": true,
6 | "module": "CommonJS",
7 | "outDir": "lib",
8 | "rootDir": "src"
9 | },
10 | "include": ["src"]
11 | }
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.elementhandle.frame.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ElementHandle.frame
3 | ---
4 |
5 | # ElementHandle.frame property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ElementHandle {
11 | get frame(): Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.layoutcount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.LayoutCount
3 | ---
4 |
5 | # Metrics.LayoutCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | LayoutCount?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pdfmargin.bottom.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFMargin.bottom
3 | ---
4 |
5 | # PDFMargin.bottom property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PDFMargin {
11 | bottom?: string | number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.tracingoptions.path.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TracingOptions.path
3 | ---
4 |
5 | # TracingOptions.path property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface TracingOptions {
11 | path?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boundingbox.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoundingBox.width
3 | ---
4 |
5 | # BoundingBox.width property
6 |
7 | the width of the element in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface BoundingBox {
13 | width: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.cdpsessiononmessageobject.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.id
3 | ---
4 |
5 | # CDPSessionOnMessageObject.id property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | id?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectiontransport.onclose.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionTransport.onclose
3 | ---
4 |
5 | # ConnectionTransport.onclose property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionTransport {
11 | onclose?: () => void;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.mousebutton.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseButton
3 | ---
4 |
5 | # MouseButton type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type MouseButton =
11 | | 'left'
12 | | 'right'
13 | | 'middle'
14 | | 'back'
15 | | 'forward';
16 | ```
17 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.content.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.content
3 | ---
4 |
5 | # Page.content() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | content(): Promise;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Promise<string>
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.frameattached.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.frameattached
3 | ---
4 |
5 | # PageEventObject.frameattached property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | frameattached: Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.framedetached.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.framedetached
3 | ---
4 |
5 | # PageEventObject.framedetached property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | framedetached: Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteernode.defaultproduct.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerNode.defaultProduct
3 | ---
4 |
5 | # PuppeteerNode.defaultProduct property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class PuppeteerNode {
11 | get defaultProduct(): Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.orientation.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.orientation
3 | ---
4 |
5 | # SerializedAXNode.orientation property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | orientation?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/test/assets/serviceworkers/fetch/sw.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.browsercontext.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserContext.id
3 | ---
4 |
5 | # BrowserContext.id property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class BrowserContext {
11 | get id(): string | undefined;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.credentials.password.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Credentials.password
3 | ---
4 |
5 | # Credentials.password property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Credentials {
11 | password: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.credentials.username.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Credentials.username
3 | ---
4 |
5 | # Credentials.username property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Credentials {
11 | username: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.taskduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.TaskDuration
3 | ---
4 |
5 | # Metrics.TaskDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | TaskDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mouseoptions.button.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseOptions.button
3 | ---
4 |
5 | # MouseOptions.button property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseOptions {
11 | button?: MouseButton;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.accessibility.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.accessibility
3 | ---
4 |
5 | # Page.accessibility property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | get accessibility(): Accessibility;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.close.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.close
3 | ---
4 |
5 | # PageEventObject.close property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | close: never;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.error.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.error
3 | ---
4 |
5 | # PageEventObject.error property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | error: Error;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.load.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.load
3 | ---
4 |
5 | # PageEventObject.load property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | load: never;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.popup.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.popup
3 | ---
4 |
5 | # PageEventObject.popup property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | popup: Page;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.screenshotclip.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.width
3 | ---
4 |
5 | # ScreenshotClip.width property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | width: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.target.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Target.url
3 | ---
4 |
5 | # Target.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Target {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
--------------------------------------------------------------------------------
/docker/test/smoke-test.js:
--------------------------------------------------------------------------------
1 | const puppeteer = require('puppeteer');
2 |
3 | (async () => {
4 | const browser = await puppeteer.launch();
5 | const page = await browser.newPage();
6 | await page.goto('https://example.com');
7 | await browser.close();
8 | console.log('done');
9 | })();
10 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.boundingbox.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoundingBox.height
3 | ---
4 |
5 | # BoundingBox.height property
6 |
7 | the height of the element in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface BoundingBox {
13 | height: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcherrevisioninfo.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.url
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.url property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | url: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.coverageentry.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CoverageEntry.url
3 | ---
4 |
5 | # CoverageEntry.url property
6 |
7 | The URL of the style sheet or script.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface CoverageEntry {
13 | url: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.framenavigated.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.framenavigated
3 | ---
4 |
5 | # PageEventObject.framenavigated property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | framenavigated: Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.requestfailed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.requestfailed
3 | ---
4 |
5 | # PageEventObject.requestfailed property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | requestfailed: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.workercreated.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.workercreated
3 | ---
4 |
5 | # PageEventObject.workercreated property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | workercreated: WebWorker;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.responseforrequest.contenttype.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResponseForRequest.contentType
3 | ---
4 |
5 | # ResponseForRequest.contentType property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ResponseForRequest {
11 | contentType: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.autocomplete.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.autocomplete
3 | ---
4 |
5 | # SerializedAXNode.autocomplete property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | autocomplete?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.dialog.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.dialog
3 | ---
4 |
5 | # PageEventObject.dialog property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | dialog: Dialog;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.screenshotclip.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.height
3 | ---
4 |
5 | # ScreenshotClip.height property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | height: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.cdpsessiononmessageobject.result.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.result
3 | ---
4 |
5 | # CDPSessionOnMessageObject.result property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | result?: any;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.continuerequestoverrides.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.method
3 | ---
4 |
5 | # ContinueRequestOverrides.method property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ContinueRequestOverrides {
11 | method?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.coverageentry.text.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CoverageEntry.text
3 | ---
4 |
5 | # CoverageEntry.text property
6 |
7 | The content of the style sheet or script.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface CoverageEntry {
13 | text: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteererrors.timeouterror.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerErrors.TimeoutError
3 | ---
4 |
5 | # PuppeteerErrors.TimeoutError property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerErrors {
11 | TimeoutError: typeof TimeoutError;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteerlaunchoptions.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerLaunchOptions.product
3 | ---
4 |
5 | # PuppeteerLaunchOptions.product property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerLaunchOptions {
11 | product?: Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotclip.scale.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.scale
3 | ---
4 |
5 | # ScreenshotClip.scale property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | scale?: number;
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | 1
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.level.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.level
3 | ---
4 |
5 | # SerializedAXNode.level property
6 |
7 | The level of a heading.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | level?: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.targetfiltercallback.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TargetFilterCallback
3 | ---
4 |
5 | # TargetFilterCallback type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type TargetFilterCallback = (
11 | target: Protocol.Target.TargetInfo
12 | ) => boolean;
13 | ```
14 |
--------------------------------------------------------------------------------
/test/assets/pdf.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PDF
7 |
8 |
9 | PDF Content
10 |
11 |
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.evaluation_script_url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: EVALUATION_SCRIPT_URL
3 | ---
4 |
5 | # EVALUATION_SCRIPT_URL variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | EVALUATION_SCRIPT_URL = 'pptr://__puppeteer_evaluation_script__';
11 | ```
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.jsheaptotalsize.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.JSHeapTotalSize
3 | ---
4 |
5 | # Metrics.JSHeapTotalSize property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | JSHeapTotalSize?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.jsheapusedsize.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.JSHeapUsedSize
3 | ---
4 |
5 | # Metrics.JSHeapUsedSize property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | JSHeapUsedSize?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.layoutduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.LayoutDuration
3 | ---
4 |
5 | # Metrics.LayoutDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | LayoutDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.scriptduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.ScriptDuration
3 | ---
4 |
5 | # Metrics.ScriptDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | ScriptDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mouseoptions.clickcount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseOptions.clickCount
3 | ---
4 |
5 | # MouseOptions.clickCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseOptions {
11 | clickCount?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.protocolerror.code.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProtocolError.code
3 | ---
4 |
5 | # ProtocolError.code property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ProtocolError {
11 | set code(code: number | undefined);
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.modal.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.modal
3 | ---
4 |
5 | # SerializedAXNode.modal property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | modal?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.viewport.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Viewport.width
3 | ---
4 |
5 | # Viewport.width property
6 |
7 | The page width in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Viewport {
13 | width: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/.prettierrc.cjs:
--------------------------------------------------------------------------------
1 | /**
2 | * @type {import('prettier').Config}
3 | */
4 | module.exports = {
5 | ...require('gts/.prettierrc.json'),
6 | // proseWrap: 'always', // Uncomment this while working on Markdown documents. MAKE SURE TO COMMENT THIS BEFORE RUNNING CHECKS/FORMATS OR EVERYTHING WILL BE MODIFIED.
7 | };
8 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcherrevisioninfo.local.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.local
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.local property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | local: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.cdpsession.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSession.id
3 | ---
4 |
5 | # CDPSession.id() method
6 |
7 | Returns the session's id.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class CDPSession {
13 | id(): string;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | string
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.cdpsessiononmessageobject.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.method
3 | ---
4 |
5 | # CDPSessionOnMessageObject.method property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | method: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.clickoptions.button.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ClickOptions.button
3 | ---
4 |
5 | # ClickOptions.button property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ClickOptions {
11 | button?: MouseButton;
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | 'left'
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connect.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: connect
3 | ---
4 |
5 | # connect variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | connect: (
11 | options: import('puppeteer-core/internal/common/Puppeteer.js').ConnectOptions
12 | ) => Promise;
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectoptions.browserwsendpoint.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectOptions.browserWSEndpoint
3 | ---
4 |
5 | # ConnectOptions.browserWSEndpoint property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectOptions {
11 | browserWSEndpoint?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.defaultargs.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: defaultArgs
3 | ---
4 |
5 | # defaultArgs variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | defaultArgs: (options?: import("puppeteer-core/internal/node/LaunchOptions.js").BrowserLaunchArgumentOptions | undefined) => string[]
11 | ```
12 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.offset.x.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Offset.x
3 | ---
4 |
5 | # Offset.x property
6 |
7 | x-offset for the clickable point relative to the top-left corner of the border box.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Offset {
13 | x: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.offset.y.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Offset.y
3 | ---
4 |
5 | # Offset.y property
6 |
7 | y-offset for the clickable point relative to the top-left corner of the border box.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Offset {
13 | y: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.domcontentloaded.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.domcontentloaded
3 | ---
4 |
5 | # PageEventObject.domcontentloaded property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | domcontentloaded: never;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.requestfinished.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.requestfinished
3 | ---
4 |
5 | # PageEventObject.requestfinished property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | requestfinished: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.workerdestroyed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.workerdestroyed
3 | ---
4 |
5 | # PageEventObject.workerdestroyed property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | workerdestroyed: WebWorker;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteererrors.protocolerror.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerErrors.ProtocolError
3 | ---
4 |
5 | # PuppeteerErrors.ProtocolError property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerErrors {
11 | ProtocolError: typeof ProtocolError;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.webworker.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: WebWorker.url
3 | ---
4 |
5 | # WebWorker.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class WebWorker {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The URL of this web worker.
20 |
--------------------------------------------------------------------------------
/test/assets/initiator.js:
--------------------------------------------------------------------------------
1 | const script = document.createElement('script');
2 | script.src = './injectedfile.js';
3 | document.body.appendChild(script);
4 |
5 | const style = document.createElement('link');
6 | style.rel = 'stylesheet';
7 | style.href = './injectedstyle.css';
8 | document.head.appendChild(style);
9 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connection.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Connection.url
3 | ---
4 |
5 | # Connection.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Connection {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.jseventlisteners.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.JSEventListeners
3 | ---
4 |
5 | # Metrics.JSEventListeners property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | JSEventListeners?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.recalcstylecount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.RecalcStyleCount
3 | ---
4 |
5 | # Metrics.RecalcStyleCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | RecalcStyleCount?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mousewheeloptions.deltax.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseWheelOptions.deltaX
3 | ---
4 |
5 | # MouseWheelOptions.deltaX property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseWheelOptions {
11 | deltaX?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mousewheeloptions.deltay.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseWheelOptions.deltaY
3 | ---
4 |
5 | # MouseWheelOptions.deltaY property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface MouseWheelOptions {
11 | deltaY?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.networkconditions.upload.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: NetworkConditions.upload
3 | ---
4 |
5 | # NetworkConditions.upload property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface NetworkConditions {
11 | upload: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.request.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.request
3 | ---
4 |
5 | # PageEventObject.request property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | request: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.platform.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Platform
3 | ---
4 |
5 | # Platform type
6 |
7 | Supported platforms.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | export declare type Platform = 'linux' | 'mac' | 'mac_arm' | 'win32' | 'win64';
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.productlauncher.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProductLauncher.product
3 | ---
4 |
5 | # ProductLauncher.product property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ProductLauncher {
11 | get product(): Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.focused.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.focused
3 | ---
4 |
5 | # SerializedAXNode.focused property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | focused?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.viewport.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Viewport.height
3 | ---
4 |
5 | # Viewport.height property
6 |
7 | The page height in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Viewport {
13 | height: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcherrevisioninfo.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.product
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.product property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | product: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectiontransport.onmessage.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionTransport.onmessage
3 | ---
4 |
5 | # ConnectionTransport.onmessage property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionTransport {
11 | onmessage?: (message: string) => void;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.continuerequestoverrides.postdata.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.postData
3 | ---
4 |
5 | # ContinueRequestOverrides.postData property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ContinueRequestOverrides {
11 | postData?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.httprequest.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPRequest.url
3 | ---
4 |
5 | # HTTPRequest.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPRequest {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | the URL of the request
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.interceptresolutionstate.priority.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InterceptResolutionState.priority
3 | ---
4 |
5 | # InterceptResolutionState.priority property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface InterceptResolutionState {
11 | priority?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.internalnetworkconditions.offline.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InternalNetworkConditions.offline
3 | ---
4 |
5 | # InternalNetworkConditions.offline property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface InternalNetworkConditions {
11 | offline: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.launchoptions.channel.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: LaunchOptions.channel
3 | ---
4 |
5 | # LaunchOptions.channel property
6 |
7 | Chrome Release Channel
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface LaunchOptions {
13 | channel?: ChromeReleaseChannel;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pressoptions.text.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PressOptions.text
3 | ---
4 |
5 | # PressOptions.text property
6 |
7 | If specified, generates an input event with this text.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PressOptions {
13 | text?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.protocolerror.originalmessage.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProtocolError.originalMessage
3 | ---
4 |
5 | # ProtocolError.originalMessage property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ProtocolError {
11 | set originalMessage(originalMessage: string);
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteernode.lastlaunchedproduct.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerNode.lastLaunchedProduct
3 | ---
4 |
5 | # PuppeteerNode.lastLaunchedProduct property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class PuppeteerNode {
11 | get lastLaunchedProduct(): Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.name.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.name
3 | ---
4 |
5 | # SerializedAXNode.name property
6 |
7 | A human readable name for the node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | name?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectioncallback.error.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionCallback.error
3 | ---
4 |
5 | # ConnectionCallback.error property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionCallback {
11 | error: ProtocolError;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectioncallback.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionCallback.method
3 | ---
4 |
5 | # ConnectionCallback.method property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionCallback {
11 | method: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectoptions.browserurl.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectOptions.browserURL
3 | ---
4 |
5 | # ConnectOptions.browserURL property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectOptions {
11 | browserURL?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.networkconditions.latency.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: NetworkConditions.latency
3 | ---
4 |
5 | # NetworkConditions.latency property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface NetworkConditions {
11 | latency: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.console.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.console
3 | ---
4 |
5 | # PageEventObject.console property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | console: ConsoleMessage;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.pageerror.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.pageerror
3 | ---
4 |
5 | # PageEventObject.pageerror property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | pageerror: Error;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.response.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.response
3 | ---
4 |
5 | # PageEventObject.response property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | response: HTTPResponse;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.responseforrequest.body.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResponseForRequest.body
3 | ---
4 |
5 | # ResponseForRequest.body property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ResponseForRequest {
11 | body: string | Buffer;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.responseforrequest.status.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResponseForRequest.status
3 | ---
4 |
5 | # ResponseForRequest.status property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ResponseForRequest {
11 | status: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.disabled.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.disabled
3 | ---
4 |
5 | # SerializedAXNode.disabled property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | disabled?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.expanded.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.expanded
3 | ---
4 |
5 | # SerializedAXNode.expanded property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | expanded?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.haspopup.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.haspopup
3 | ---
4 |
5 | # SerializedAXNode.haspopup property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | haspopup?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.readonly.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.readonly
3 | ---
4 |
5 | # SerializedAXNode.readonly property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | readonly?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.required.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.required
3 | ---
4 |
5 | # SerializedAXNode.required property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | required?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.selected.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.selected
3 | ---
4 |
5 | # SerializedAXNode.selected property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | selected?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.valuemax.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.valuemax
3 | ---
4 |
5 | # SerializedAXNode.valuemax property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | valuemax?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.valuemin.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.valuemin
3 | ---
4 |
5 | # SerializedAXNode.valuemin property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | valuemin?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.tracingoptions.categories.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TracingOptions.categories
3 | ---
4 |
5 | # TracingOptions.categories property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface TracingOptions {
11 | categories?: string[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcherrevisioninfo.revision.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.revision
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.revision property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | revision: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.clickoptions.clickcount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ClickOptions.clickCount
3 | ---
4 |
5 | # ClickOptions.clickCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ClickOptions {
11 | clickCount?: number;
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | 1
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.connectiontransport.close.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionTransport.close
3 | ---
4 |
5 | # ConnectionTransport.close() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionTransport {
11 | close(): void;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | void
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frame.title.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.title
3 | ---
4 |
5 | # Frame.title() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | title(): Promise;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Promise<string>
18 |
19 | the frame's title.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.httpresponse.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPResponse.url
3 | ---
4 |
5 | # HTTPResponse.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPResponse {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The URL of the response.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.value.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.value
3 | ---
4 |
5 | # SerializedAXNode.value property
6 |
7 | The current value of the node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | value?: string | number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/test/assets/frames/two-frames.html:
--------------------------------------------------------------------------------
1 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connection.dispose.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Connection.dispose
3 | ---
4 |
5 | # Connection.dispose() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Connection {
11 | dispose(): void;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | void
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.frame.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.url
3 | ---
4 |
5 | # Frame.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The frame's URL.
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.networkconditions.download.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: NetworkConditions.download
3 | ---
4 |
5 | # NetworkConditions.download property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface NetworkConditions {
11 | download: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.multiline.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.multiline
3 | ---
4 |
5 | # SerializedAXNode.multiline property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | multiline?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.tracingoptions.screenshots.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TracingOptions.screenshots
3 | ---
4 |
5 | # TracingOptions.screenshots property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface TracingOptions {
11 | screenshots?: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.cdpsessiononmessageobject.params.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.params
3 | ---
4 |
5 | # CDPSessionOnMessageObject.params property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | params: Record;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.continuerequestoverrides.headers.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.headers
3 | ---
4 |
5 | # ContinueRequestOverrides.headers property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ContinueRequestOverrides {
11 | headers?: Record;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.customqueryhandler.queryall.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CustomQueryHandler.queryAll
3 | ---
4 |
5 | # CustomQueryHandler.queryAll property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CustomQueryHandler {
11 | queryAll?: (node: Node, selector: string) => Node[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.dialog.message.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Dialog.message
3 | ---
4 |
5 | # Dialog.message() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Dialog {
11 | message(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The message displayed in the dialog.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.flattenhandle.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FlattenHandle
3 | ---
4 |
5 | # FlattenHandle type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type FlattenHandle = T extends HandleOr ? U : never;
11 | ```
12 |
13 | **References:** [HandleOr](./puppeteer.handleor.md)
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frame.page.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.page
3 | ---
4 |
5 | # Frame.page() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | page(): Page;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | [Page](./puppeteer.page.md)
18 |
19 | The page associated with the frame.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.interceptresolutionstate.action.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InterceptResolutionState.action
3 | ---
4 |
5 | # InterceptResolutionState.action property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface InterceptResolutionState {
11 | action: InterceptResolutionAction;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.isclosed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.isClosed
3 | ---
4 |
5 | # Page.isClosed() method
6 |
7 | Indicates that the page has been closed.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Page {
13 | isClosed(): boolean;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | boolean
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.waitforoptions.waituntil.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: WaitForOptions.waitUntil
3 | ---
4 |
5 | # WaitForOptions.waitUntil property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface WaitForOptions {
11 | waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/src/injected/README.md:
--------------------------------------------------------------------------------
1 | # Injected
2 |
3 | This folder contains code that is injected into every Puppeteer execution context. Each file is transpiled using esbuild into a script in `src/generated` which is then imported into server code.
4 |
5 | See `tools/generate_injected.ts` for more information.
6 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.cdpsessiononmessageobject.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.id
3 | ---
4 |
5 | # CDPSessionOnMessageObject.id property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | id?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectiontransport.onclose.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionTransport.onclose
3 | ---
4 |
5 | # ConnectionTransport.onclose property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionTransport {
11 | onclose?: () => void;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectoptions.transport.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectOptions.transport
3 | ---
4 |
5 | # ConnectOptions.transport property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectOptions {
11 | transport?: ConnectionTransport;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.metrics.recalcstyleduration.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Metrics.RecalcStyleDuration
3 | ---
4 |
5 | # Metrics.RecalcStyleDuration property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface Metrics {
11 | RecalcStyleDuration?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.content.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.content
3 | ---
4 |
5 | # Page.content() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | content(): Promise;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Promise<string>
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.orientation.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.orientation
3 | ---
4 |
5 | # SerializedAXNode.orientation property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | orientation?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcherrevisioninfo.folderpath.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.folderPath
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.folderPath property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | folderPath: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.customqueryhandler.queryone.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CustomQueryHandler.queryOne
3 | ---
4 |
5 | # CustomQueryHandler.queryOne property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CustomQueryHandler {
11 | queryOne?: (node: Node, selector: string) => Node | null;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frameaddscripttagoptions.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FrameAddScriptTagOptions.id
3 | ---
4 |
5 | # FrameAddScriptTagOptions.id property
6 |
7 | Sets the `id` of the script.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface FrameAddScriptTagOptions {
13 | id?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.metrics.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.metrics
3 | ---
4 |
5 | # PageEventObject.metrics property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | metrics: {
12 | title: string;
13 | metrics: Metrics;
14 | };
15 | }
16 | ```
17 |
--------------------------------------------------------------------------------
/test/assets/csscoverage/multiple.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
--------------------------------------------------------------------------------
/test/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "module": "CommonJS",
5 | "moduleResolution": "NodeNext",
6 | "outDir": "build",
7 | "rootDir": "src"
8 | },
9 | "include": ["src"],
10 | "references": [{"path": "../tools/mochaRunner/tsconfig.json"}]
11 | }
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boundingbox.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoundingBox.width
3 | ---
4 |
5 | # BoundingBox.width property
6 |
7 | the width of the element in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface BoundingBox {
13 | width: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.coverageentry.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CoverageEntry.url
3 | ---
4 |
5 | # CoverageEntry.url property
6 |
7 | The URL of the style sheet or script.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface CoverageEntry {
13 | url: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.mousebutton.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: MouseButton
3 | ---
4 |
5 | # MouseButton type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type MouseButton =
11 | | 'left'
12 | | 'right'
13 | | 'middle'
14 | | 'back'
15 | | 'forward';
16 | ```
17 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.frameattached.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.frameattached
3 | ---
4 |
5 | # PageEventObject.frameattached property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | frameattached: Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.framedetached.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.framedetached
3 | ---
4 |
5 | # PageEventObject.framedetached property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | framedetached: Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.puppeteernode.defaultproduct.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerNode.defaultProduct
3 | ---
4 |
5 | # PuppeteerNode.defaultProduct property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class PuppeteerNode {
11 | get defaultProduct(): Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.autocomplete.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.autocomplete
3 | ---
4 |
5 | # SerializedAXNode.autocomplete property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface SerializedAXNode {
11 | autocomplete?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: true
2 | contact_links:
3 | - name: General Puppeteer questions
4 | url: https://stackoverflow.com/questions/tagged/puppeteer
5 | about: For general technical questions or “how to” guidance, please search StackOverflow for questions tagged “puppeteer” or create a new post.
6 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.chromereleasechannel.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ChromeReleaseChannel
3 | ---
4 |
5 | # ChromeReleaseChannel type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type ChromeReleaseChannel =
11 | | 'chrome'
12 | | 'chrome-beta'
13 | | 'chrome-canary'
14 | | 'chrome-dev';
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.dialog.type.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Dialog.type
3 | ---
4 |
5 | # Dialog.type() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Dialog {
11 | type(): Protocol.Page.DialogType;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Protocol.Page.DialogType
18 |
19 | The type of the dialog.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frameaddscripttagoptions.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FrameAddScriptTagOptions.url
3 | ---
4 |
5 | # FrameAddScriptTagOptions.url property
6 |
7 | URL of the script to be added.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface FrameAddScriptTagOptions {
13 | url?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.geolocationoptions.latitude.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: GeolocationOptions.latitude
3 | ---
4 |
5 | # GeolocationOptions.latitude property
6 |
7 | Longitude between `-180` and `180`.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface GeolocationOptions {
13 | latitude: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.geolocationoptions.longitude.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: GeolocationOptions.longitude
3 | ---
4 |
5 | # GeolocationOptions.longitude property
6 |
7 | Latitude between `-90` and `90`.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface GeolocationOptions {
13 | longitude: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.handleor.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HandleOr
3 | ---
4 |
5 | # HandleOr type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type HandleOr = HandleFor | JSHandle | T;
11 | ```
12 |
13 | **References:** [HandleFor](./puppeteer.handlefor.md), [JSHandle](./puppeteer.jshandle.md)
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.httprequest.client.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPRequest.client
3 | ---
4 |
5 | # HTTPRequest.client property
6 |
7 | Warning! Using this client can break Puppeteer. Use with caution.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class HTTPRequest {
13 | get client(): CDPSession;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfoptions.timeout.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFOptions.timeout
3 | ---
4 |
5 | # PDFOptions.timeout property
6 |
7 | Timeout in milliseconds
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PDFOptions {
13 | timeout?: number;
14 | }
15 | ```
16 |
17 | #### Default value:
18 |
19 | 30000
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.resourcetype.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResourceType
3 | ---
4 |
5 | # ResourceType type
6 |
7 | Resource types for HTTPRequests as perceived by the rendering engine.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | export declare type ResourceType = Lowercase;
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotoptions.type.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotOptions.type
3 | ---
4 |
5 | # ScreenshotOptions.type property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotOptions {
11 | type?: 'png' | 'jpeg' | 'webp';
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | `png`
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.valuetext.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.valuetext
3 | ---
4 |
5 | # SerializedAXNode.valuetext property
6 |
7 | A description of the current value.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | valuetext?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.boundingbox.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BoundingBox.height
3 | ---
4 |
5 | # BoundingBox.height property
6 |
7 | the height of the element in pixels.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface BoundingBox {
13 | height: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.browserfetcherrevisioninfo.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.url
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.url property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | url: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.framenavigated.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.framenavigated
3 | ---
4 |
5 | # PageEventObject.framenavigated property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | framenavigated: Frame;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.requestfailed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.requestfailed
3 | ---
4 |
5 | # PageEventObject.requestfailed property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | requestfailed: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.workercreated.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.workercreated
3 | ---
4 |
5 | # PageEventObject.workercreated property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | workercreated: WebWorker;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.puppeteerlaunchoptions.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerLaunchOptions.product
3 | ---
4 |
5 | # PuppeteerLaunchOptions.product property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerLaunchOptions {
11 | product?: Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.responseforrequest.contenttype.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ResponseForRequest.contentType
3 | ---
4 |
5 | # ResponseForRequest.contentType property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ResponseForRequest {
11 | contentType: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcher.host.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcher.host
3 | ---
4 |
5 | # BrowserFetcher.host() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class BrowserFetcher {
11 | host(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The download host being used.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcheroptions.path.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherOptions.path
3 | ---
4 |
5 | # BrowserFetcherOptions.path property
6 |
7 | Determines the path to download browsers to.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface BrowserFetcherOptions {
13 | path: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.consolemessage.text.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConsoleMessage.text
3 | ---
4 |
5 | # ConsoleMessage.text() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ConsoleMessage {
11 | text(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The text of the console message.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frameaddstyletagoptions.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FrameAddStyleTagOptions.url
3 | ---
4 |
5 | # FrameAddStyleTagOptions.url property
6 |
7 | the URL of the CSS file to be added.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface FrameAddStyleTagOptions {
13 | url?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.geolocationoptions.accuracy.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: GeolocationOptions.accuracy
3 | ---
4 |
5 | # GeolocationOptions.accuracy property
6 |
7 | Optional non-negative accuracy value.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface GeolocationOptions {
13 | accuracy?: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.httprequest.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPRequest.method
3 | ---
4 |
5 | # HTTPRequest.method() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPRequest {
11 | method(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | the method used (`GET`, `POST`, etc.)
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.target.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.target
3 | ---
4 |
5 | # Page.target() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | target(): Target;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | [Target](./puppeteer.target.md)
18 |
19 | A target this page was created from.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pageeventobject.requestservedfromcache.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.requestservedfromcache
3 | ---
4 |
5 | # PageEventObject.requestservedfromcache property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | requestservedfromcache: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfoptions.width.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFOptions.width
3 | ---
4 |
5 | # PDFOptions.width property
6 |
7 | Sets the width of paper. You can pass in a number or a string with a unit.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PDFOptions {
13 | width?: string | number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pressoptions.delay.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PressOptions.delay
3 | ---
4 |
5 | # PressOptions.delay property
6 |
7 | Time to wait between `keydown` and `keyup` in milliseconds. Defaults to 0.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PressOptions {
13 | delay?: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/packages/puppeteer-core/src/templates/injected.ts.tmpl:
--------------------------------------------------------------------------------
1 | /**
2 | * CommonJS JavaScript code that provides the puppeteer utilities. See the
3 | * [README](https://github.com/puppeteer/puppeteer/blob/main/src/injected/README.md)
4 | * for injection for more information.
5 | *
6 | * @internal
7 | */
8 | export const source = SOURCE_CODE;
9 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.cdpsessiononmessageobject.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.method
3 | ---
4 |
5 | # CDPSessionOnMessageObject.method property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | method: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.cdpsessiononmessageobject.result.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.result
3 | ---
4 |
5 | # CDPSessionOnMessageObject.result property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | result?: any;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.continuerequestoverrides.method.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.method
3 | ---
4 |
5 | # ContinueRequestOverrides.method property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ContinueRequestOverrides {
11 | method?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.coverageentry.text.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CoverageEntry.text
3 | ---
4 |
5 | # CoverageEntry.text property
6 |
7 | The content of the style sheet or script.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface CoverageEntry {
13 | text: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.offset.x.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Offset.x
3 | ---
4 |
5 | # Offset.x property
6 |
7 | x-offset for the clickable point relative to the top-left corner of the border box.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Offset {
13 | x: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.offset.y.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Offset.y
3 | ---
4 |
5 | # Offset.y property
6 |
7 | y-offset for the clickable point relative to the top-left corner of the border box.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Offset {
13 | y: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.domcontentloaded.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.domcontentloaded
3 | ---
4 |
5 | # PageEventObject.domcontentloaded property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | domcontentloaded: never;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.workerdestroyed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.workerdestroyed
3 | ---
4 |
5 | # PageEventObject.workerdestroyed property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | workerdestroyed: WebWorker;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.puppeteererrors.timeouterror.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerErrors.TimeoutError
3 | ---
4 |
5 | # PuppeteerErrors.TimeoutError property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerErrors {
11 | TimeoutError: typeof TimeoutError;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.screenshotclip.scale.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotClip.scale
3 | ---
4 |
5 | # ScreenshotClip.scale property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ScreenshotClip {
11 | scale?: number;
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | 1
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.level.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.level
3 | ---
4 |
5 | # SerializedAXNode.level property
6 |
7 | The level of a heading.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | level?: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.targetfiltercallback.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: TargetFilterCallback
3 | ---
4 |
5 | # TargetFilterCallback type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type TargetFilterCallback = (
11 | target: Protocol.Target.TargetInfo
12 | ) => boolean;
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserfetcherrevisioninfo.executablepath.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.executablePath
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.executablePath property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | executablePath: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.browser.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.browser
3 | ---
4 |
5 | # Page.browser() method
6 |
7 | Get the browser the page belongs to.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Page {
13 | browser(): Browser;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | [Browser](./puppeteer.browser.md)
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfoptions.height.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFOptions.height
3 | ---
4 |
5 | # PDFOptions.height property
6 |
7 | Sets the height of paper. You can pass in a number or a string with a unit.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PDFOptions {
13 | height?: string | number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfoptions.margin.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFOptions.margin
3 | ---
4 |
5 | # PDFOptions.margin property
6 |
7 | Set the PDF margins.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PDFOptions {
13 | margin?: PDFMargin;
14 | }
15 | ```
16 |
17 | #### Default value:
18 |
19 | no margins are set.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.children.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.children
3 | ---
4 |
5 | # SerializedAXNode.children property
6 |
7 | Children of this node, if there are any.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | children?: SerializedAXNode[];
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.invalid.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.invalid
3 | ---
4 |
5 | # SerializedAXNode.invalid property
6 |
7 | Whether and in what way this node's value is invalid.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | invalid?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.role.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.role
3 | ---
4 |
5 | # SerializedAXNode.role property
6 |
7 | The [role](https://www.w3.org/TR/wai-aria/#usage_intro) of the node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | role: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.browserfetcherrevisioninfo.local.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.local
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.local property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | local: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.cdpsession.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSession.id
3 | ---
4 |
5 | # CDPSession.id() method
6 |
7 | Returns the session's id.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class CDPSession {
13 | id(): string;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | string
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.clickoptions.button.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ClickOptions.button
3 | ---
4 |
5 | # ClickOptions.button property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ClickOptions {
11 | button?: MouseButton;
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | 'left'
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connect.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: connect
3 | ---
4 |
5 | # connect variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | connect: (
11 | options: import('puppeteer-core/internal/common/Puppeteer.js').ConnectOptions
12 | ) => Promise;
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectoptions.browserwsendpoint.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectOptions.browserWSEndpoint
3 | ---
4 |
5 | # ConnectOptions.browserWSEndpoint property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectOptions {
11 | browserWSEndpoint?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.continuerequestoverrides.postdata.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.postData
3 | ---
4 |
5 | # ContinueRequestOverrides.postData property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ContinueRequestOverrides {
11 | postData?: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.defaultargs.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: defaultArgs
3 | ---
4 |
5 | # defaultArgs variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | defaultArgs: (options?: import("puppeteer-core/internal/node/LaunchOptions.js").BrowserLaunchArgumentOptions | undefined) => string[]
11 | ```
12 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.interceptresolutionstate.priority.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InterceptResolutionState.priority
3 | ---
4 |
5 | # InterceptResolutionState.priority property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface InterceptResolutionState {
11 | priority?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.internalnetworkconditions.offline.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InternalNetworkConditions.offline
3 | ---
4 |
5 | # InternalNetworkConditions.offline property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface InternalNetworkConditions {
11 | offline: boolean;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.launchoptions.channel.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: LaunchOptions.channel
3 | ---
4 |
5 | # LaunchOptions.channel property
6 |
7 | Chrome Release Channel
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface LaunchOptions {
13 | channel?: ChromeReleaseChannel;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.requestfinished.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.requestfinished
3 | ---
4 |
5 | # PageEventObject.requestfinished property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | requestfinished: HTTPRequest;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.protocolerror.originalmessage.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProtocolError.originalMessage
3 | ---
4 |
5 | # ProtocolError.originalMessage property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class ProtocolError {
11 | set originalMessage(originalMessage: string);
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.puppeteererrors.protocolerror.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerErrors.ProtocolError
3 | ---
4 |
5 | # PuppeteerErrors.ProtocolError property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerErrors {
11 | ProtocolError: typeof ProtocolError;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.name.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.name
3 | ---
4 |
5 | # SerializedAXNode.name property
6 |
7 | A human readable name for the node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | name?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.webworker.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: WebWorker.url
3 | ---
4 |
5 | # WebWorker.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class WebWorker {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The URL of this web worker.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browser.isconnected.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Browser.isConnected
3 | ---
4 |
5 | # Browser.isConnected() method
6 |
7 | Indicates that the browser is connected.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Browser {
13 | isConnected(): boolean;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | boolean
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browserlaunchargumentoptions.debuggingport.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserLaunchArgumentOptions.debuggingPort
3 | ---
4 |
5 | # BrowserLaunchArgumentOptions.debuggingPort property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserLaunchArgumentOptions {
11 | debuggingPort?: number;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.clickoptions.offset.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ClickOptions.offset
3 | ---
4 |
5 | # ClickOptions.offset property
6 |
7 | Offset for the clickable point relative to the top-left corner of the border box.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface ClickOptions {
13 | offset?: Offset;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.consolemessagelocation.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConsoleMessageLocation.url
3 | ---
4 |
5 | # ConsoleMessageLocation.url property
6 |
7 | URL of the resource if known or `undefined` otherwise.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface ConsoleMessageLocation {
13 | url?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.executablepath.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: executablePath
3 | ---
4 |
5 | # executablePath variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | executablePath: (
11 | channel?:
12 | | import('puppeteer-core/internal/node/LaunchOptions.js').ChromeReleaseChannel
13 | | undefined
14 | ) => string;
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.launch.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: launch
3 | ---
4 |
5 | # launch variable
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | launch: (
11 | options?:
12 | | import('puppeteer-core/internal/node/PuppeteerNode.js').PuppeteerLaunchOptions
13 | | undefined
14 | ) => Promise;
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.frames.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.frames
3 | ---
4 |
5 | # Page.frames() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | frames(): Frame[];
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | [Frame](./puppeteer.frame.md)\[\]
18 |
19 | An array of all frames attached to the page.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.getdefaulttimeout.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.getDefaultTimeout
3 | ---
4 |
5 | # Page.getDefaultTimeout() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | getDefaultTimeout(): number;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | number
18 |
19 | Maximum time in milliseconds.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.url
3 | ---
4 |
5 | # Page.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Page {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | ## Remarks
20 |
21 | Shortcut for [page.mainFrame().url()](./puppeteer.frame.url.md).
22 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.protocollifecycleevent.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ProtocolLifeCycleEvent
3 | ---
4 |
5 | # ProtocolLifeCycleEvent type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type ProtocolLifeCycleEvent =
11 | | 'load'
12 | | 'DOMContentLoaded'
13 | | 'networkIdle'
14 | | 'networkAlmostIdle';
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteerlifecycleevent.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerLifeCycleEvent
3 | ---
4 |
5 | # PuppeteerLifeCycleEvent type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type PuppeteerLifeCycleEvent =
11 | | 'load'
12 | | 'domcontentloaded'
13 | | 'networkidle0'
14 | | 'networkidle2';
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotoptions.clip.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotOptions.clip
3 | ---
4 |
5 | # ScreenshotOptions.clip property
6 |
7 | An object which specifies the clipping region of the page.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface ScreenshotOptions {
13 | clip?: ScreenshotClip;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.pressed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.pressed
3 | ---
4 |
5 | # SerializedAXNode.pressed property
6 |
7 | Whether the node is checked or in a mixed state.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | pressed?: boolean | 'mixed';
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/test/assets/worker/worker.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Worker test
5 |
6 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.browserfetcherrevisioninfo.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.product
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.product property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | product: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.clickoptions.clickcount.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ClickOptions.clickCount
3 | ---
4 |
5 | # ClickOptions.clickCount property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ClickOptions {
11 | clickCount?: number;
12 | }
13 | ```
14 |
15 | #### Default value:
16 |
17 | 1
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectiontransport.onmessage.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionTransport.onmessage
3 | ---
4 |
5 | # ConnectionTransport.onmessage property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionTransport {
11 | onmessage?: (message: string) => void;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.frame.title.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.title
3 | ---
4 |
5 | # Frame.title() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | title(): Promise;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Promise<string>
18 |
19 | the frame's title.
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.httprequest.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPRequest.url
3 | ---
4 |
5 | # HTTPRequest.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPRequest {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | the URL of the request
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pressoptions.text.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PressOptions.text
3 | ---
4 |
5 | # PressOptions.text property
6 |
7 | If specified, generates an input event with this text.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PressOptions {
13 | text?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.puppeteernode.lastlaunchedproduct.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerNode.lastLaunchedProduct
3 | ---
4 |
5 | # PuppeteerNode.lastLaunchedProduct property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class PuppeteerNode {
11 | get lastLaunchedProduct(): Product;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.browser.target.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Browser.target
3 | ---
4 |
5 | # Browser.target() method
6 |
7 | The target associated with the browser.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Browser {
13 | target(): Target;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | [Target](./puppeteer.target.md)
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.configuration.experiments.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Configuration.experiments
3 | ---
4 |
5 | # Configuration.experiments property
6 |
7 | Defines experimental options for Puppeteer.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Configuration {
13 | experiments?: ExperimentsConfiguration;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.filechooser.cancel.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FileChooser.cancel
3 | ---
4 |
5 | # FileChooser.cancel() method
6 |
7 | Closes the file chooser without selecting any files.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class FileChooser {
13 | cancel(): void;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | void
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frame.childframes.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.childFrames
3 | ---
4 |
5 | # Frame.childFrames() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | childFrames(): Frame[];
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | [Frame](./puppeteer.frame.md)\[\]
18 |
19 | An array of child frames.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frame.isdetached.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.isDetached
3 | ---
4 |
5 | # Frame.isDetached() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | isDetached(): boolean;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | boolean
18 |
19 | `true` if the frame has been detached. Otherwise, `false`.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.innerparams.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InnerParams
3 | ---
4 |
5 | # InnerParams type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type InnerParams = {
11 | [K in keyof T]: FlattenHandle;
12 | };
13 | ```
14 |
15 | **References:** [FlattenHandle](./puppeteer.flattenhandle.md)
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.launchoptions.product.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: LaunchOptions.product
3 | ---
4 |
5 | # LaunchOptions.product property
6 |
7 | Which browser to launch.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface LaunchOptions {
13 | product?: Product;
14 | }
15 | ```
16 |
17 | #### Default value:
18 |
19 | `chrome`
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.target.browser.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Target.browser
3 | ---
4 |
5 | # Target.browser() method
6 |
7 | Get the browser the target belongs to.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Target {
13 | browser(): Browser;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | [Browser](./puppeteer.browser.md)
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.viewport.hastouch.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Viewport.hasTouch
3 | ---
4 |
5 | # Viewport.hasTouch property
6 |
7 | Specify if the viewport supports touch events.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Viewport {
13 | hasTouch?: boolean;
14 | }
15 | ```
16 |
17 | #### Default value:
18 |
19 | false
20 |
--------------------------------------------------------------------------------
/test/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | rules: {
3 | 'no-restricted-imports': [
4 | 'error',
5 | {
6 | /** The mocha tests run on the compiled output in the /lib directory
7 | * so we should avoid importing from src.
8 | */
9 | patterns: ['*src*'],
10 | },
11 | ],
12 | },
13 | };
14 |
--------------------------------------------------------------------------------
/test/assets/detect-touch.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Detect Touch Test
5 |
6 |
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.browserfetcherrevisioninfo.revision.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.revision
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.revision property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | revision: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.connectiontransport.close.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ConnectionTransport.close
3 | ---
4 |
5 | # ConnectionTransport.close() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ConnectionTransport {
11 | close(): void;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | void
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.customqueryhandler.queryall.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CustomQueryHandler.queryAll
3 | ---
4 |
5 | # CustomQueryHandler.queryAll property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CustomQueryHandler {
11 | queryAll?: (node: Node, selector: string) => Node[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.flattenhandle.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FlattenHandle
3 | ---
4 |
5 | # FlattenHandle type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type FlattenHandle = T extends HandleOr ? U : never;
11 | ```
12 |
13 | **References:** [HandleOr](./puppeteer.handleor.md)
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.httpresponse.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPResponse.url
3 | ---
4 |
5 | # HTTPResponse.url() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPResponse {
11 | url(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The URL of the response.
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.interceptresolutionstate.action.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: InterceptResolutionState.action
3 | ---
4 |
5 | # InterceptResolutionState.action property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface InterceptResolutionState {
11 | action: InterceptResolutionAction;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.serializedaxnode.value.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.value
3 | ---
4 |
5 | # SerializedAXNode.value property
6 |
7 | The current value of the node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | value?: string | number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.waitforoptions.waituntil.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: WaitForOptions.waitUntil
3 | ---
4 |
5 | # WaitForOptions.waitUntil property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface WaitForOptions {
11 | waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.csscoverage.stop.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CSSCoverage.stop
3 | ---
4 |
5 | # CSSCoverage.stop() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class CSSCoverage {
11 | stop(): Promise;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Promise<[CoverageEntry](./puppeteer.coverageentry.md)\[\]>
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.httpresponse.ok.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPResponse.ok
3 | ---
4 |
5 | # HTTPResponse.ok() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPResponse {
11 | ok(): boolean;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | boolean
18 |
19 | True if the response was successful (status in the range 200-299).
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.jshandle.___jshandlesymbol_.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: JSHandle.[__JSHandleSymbol]
3 | ---
4 |
5 | # JSHandle.\[\_\_JSHandleSymbol\] property
6 |
7 | Used for nominally typing [JSHandle](./puppeteer.jshandle.md).
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class JSHandle {
13 | [__JSHandleSymbol]?: T;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.page.bringtofront.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.bringToFront
3 | ---
4 |
5 | # Page.bringToFront() method
6 |
7 | Brings page to front (activates tab).
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Page {
13 | bringToFront(): Promise;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | Promise<void>
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.puppeteerlaunchoptions.extraprefsfirefox.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PuppeteerLaunchOptions.extraPrefsFirefox
3 | ---
4 |
5 | # PuppeteerLaunchOptions.extraPrefsFirefox property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PuppeteerLaunchOptions {
11 | extraPrefsFirefox?: Record;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.screenshotoptions.quality.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ScreenshotOptions.quality
3 | ---
4 |
5 | # ScreenshotOptions.quality property
6 |
7 | Quality of the image, between 0-100. Not applicable to `png` images.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface ScreenshotOptions {
13 | quality?: number;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.description.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.description
3 | ---
4 |
5 | # SerializedAXNode.description property
6 |
7 | An additional human readable description of the node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | description?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.keyshortcuts.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.keyshortcuts
3 | ---
4 |
5 | # SerializedAXNode.keyshortcuts property
6 |
7 | Any keyboard shortcuts associated with this node.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | keyshortcuts?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/test/assets/consolelog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | console.log test
5 |
6 |
7 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.browserfetcherrevisioninfo.folderpath.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: BrowserFetcherRevisionInfo.folderPath
3 | ---
4 |
5 | # BrowserFetcherRevisionInfo.folderPath property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface BrowserFetcherRevisionInfo {
11 | folderPath: string;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.cdpsessiononmessageobject.params.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSessionOnMessageObject.params
3 | ---
4 |
5 | # CDPSessionOnMessageObject.params property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CDPSessionOnMessageObject {
11 | params: Record;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.continuerequestoverrides.headers.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.headers
3 | ---
4 |
5 | # ContinueRequestOverrides.headers property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface ContinueRequestOverrides {
11 | headers?: Record;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.customqueryhandler.queryone.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CustomQueryHandler.queryOne
3 | ---
4 |
5 | # CustomQueryHandler.queryOne property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface CustomQueryHandler {
11 | queryOne?: (node: Node, selector: string) => Node | null;
12 | }
13 | ```
14 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.dialog.message.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Dialog.message
3 | ---
4 |
5 | # Dialog.message() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Dialog {
11 | message(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The message displayed in the dialog.
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.frame.page.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Frame.page
3 | ---
4 |
5 | # Frame.page() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class Frame {
11 | page(): Page;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | [Page](./puppeteer.page.md)
18 |
19 | The page associated with the frame.
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.page.isclosed.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Page.isClosed
3 | ---
4 |
5 | # Page.isClosed() method
6 |
7 | Indicates that the page has been closed.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | class Page {
13 | isClosed(): boolean;
14 | }
15 | ```
16 |
17 | **Returns:**
18 |
19 | boolean
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.pageeventobject.metrics.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PageEventObject.metrics
3 | ---
4 |
5 | # PageEventObject.metrics property
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | interface PageEventObject {
11 | metrics: {
12 | title: string;
13 | metrics: Metrics;
14 | };
15 | }
16 | ```
17 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.cdpsession.connection.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: CDPSession.connection
3 | ---
4 |
5 | # CDPSession.connection() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class CDPSession {
11 | connection(): Connection | undefined;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | [Connection](./puppeteer.connection.md) \| undefined
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.continuerequestoverrides.url.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ContinueRequestOverrides.url
3 | ---
4 |
5 | # ContinueRequestOverrides.url property
6 |
7 | If set, the request URL will change. This is not a redirect.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface ContinueRequestOverrides {
13 | url?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frameaddscripttagoptions.content.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FrameAddScriptTagOptions.content
3 | ---
4 |
5 | # FrameAddScriptTagOptions.content property
6 |
7 | JavaScript to be injected into the frame.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface FrameAddScriptTagOptions {
13 | content?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.frameaddstyletagoptions.content.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FrameAddStyleTagOptions.content
3 | ---
4 |
5 | # FrameAddStyleTagOptions.content property
6 |
7 | Raw CSS content to be injected into the frame.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface FrameAddStyleTagOptions {
13 | content?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.httpresponse.status.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HTTPResponse.status
3 | ---
4 |
5 | # HTTPResponse.status() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class HTTPResponse {
11 | status(): number;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | number
18 |
19 | The status code of the response (e.g., 200 for a success).
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.jscoverage.stop.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: JSCoverage.stop
3 | ---
4 |
5 | # JSCoverage.stop() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class JSCoverage {
11 | stop(): Promise;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | Promise<[JSCoverageEntry](./puppeteer.jscoverageentry.md)\[\]>
18 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.pdfoptions.landscape.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: PDFOptions.landscape
3 | ---
4 |
5 | # PDFOptions.landscape property
6 |
7 | Whether to print in landscape orientation.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface PDFOptions {
13 | landscape?: boolean;
14 | }
15 | ```
16 |
17 | #### Default value:
18 |
19 | = false
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.securitydetails.issuer.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SecurityDetails.issuer
3 | ---
4 |
5 | # SecurityDetails.issuer() method
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | class SecurityDetails {
11 | issuer(): string;
12 | }
13 | ```
14 |
15 | **Returns:**
16 |
17 | string
18 |
19 | The name of the issuer of the certificate.
20 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.multiselectable.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.multiselectable
3 | ---
4 |
5 | # SerializedAXNode.multiselectable property
6 |
7 | Whether more than one child can be selected.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | multiselectable?: boolean;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.serializedaxnode.roledescription.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: SerializedAXNode.roledescription
3 | ---
4 |
5 | # SerializedAXNode.roledescription property
6 |
7 | A human readable alternative to the role.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface SerializedAXNode {
13 | roledescription?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/docs/api/puppeteer.viewport.ismobile.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: Viewport.isMobile
3 | ---
4 |
5 | # Viewport.isMobile property
6 |
7 | Whether the `meta viewport` tag is taken into account.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface Viewport {
13 | isMobile?: boolean;
14 | }
15 | ```
16 |
17 | #### Default value:
18 |
19 | false
20 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.chromereleasechannel.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: ChromeReleaseChannel
3 | ---
4 |
5 | # ChromeReleaseChannel type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type ChromeReleaseChannel =
11 | | 'chrome'
12 | | 'chrome-beta'
13 | | 'chrome-canary'
14 | | 'chrome-dev';
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.frameaddscripttagoptions.id.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: FrameAddScriptTagOptions.id
3 | ---
4 |
5 | # FrameAddScriptTagOptions.id property
6 |
7 | Sets the `id` of the script.
8 |
9 | #### Signature:
10 |
11 | ```typescript
12 | interface FrameAddScriptTagOptions {
13 | id?: string;
14 | }
15 | ```
16 |
--------------------------------------------------------------------------------
/website/versioned_docs/version-19.2.0/api/puppeteer.handleor.md:
--------------------------------------------------------------------------------
1 | ---
2 | sidebar_label: HandleOr
3 | ---
4 |
5 | # HandleOr type
6 |
7 | #### Signature:
8 |
9 | ```typescript
10 | export declare type HandleOr = HandleFor | JSHandle | T;
11 | ```
12 |
13 | **References:** [HandleFor](./puppeteer.handlefor.md), [JSHandle](./puppeteer.jshandle.md)
14 |
--------------------------------------------------------------------------------