mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
71 KiB
JavaScript
2 lines
71 KiB
JavaScript
/*! For license information please see 26c7d05c.37483f69.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[43413],{87214:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>a,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var t=s(85893),n=s(11151);const i={sidebar_label:"API"},d="API Reference",c={id:"api/index",title:"API Reference",description:"Classes",source:"@site/versioned_docs/version-22.8.0/api/index.md",sourceDirName:"api",slug:"/api/",permalink:"/api/",draft:!1,unlisted:!1,tags:[],version:"22.8.0",frontMatter:{sidebar_label:"API"}},a={},p=[{value:"Classes",id:"classes",level:2},{value:"Enumerations",id:"enumerations",level:2},{value:"Functions",id:"functions",level:2},{value:"Interfaces",id:"interfaces",level:2},{value:"Namespaces",id:"namespaces",level:2},{value:"Variables",id:"variables",level:2},{value:"Type Aliases",id:"type-aliases",level:2}];function l(e){const r={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,n.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"api-reference",children:"API Reference"}),"\n",(0,t.jsx)(r.h2,{id:"classes",children:"Classes"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Class"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"accessibility",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.accessibility",children:"Accessibility"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["The Accessibility class provides methods for inspecting the browser's accessibility tree. The accessibility tree is used by assistive technology such as ",(0,t.jsx)(r.a,{href:"https://en.wikipedia.org/wiki/Screen_reader",children:"screen readers"})," or ",(0,t.jsx)(r.a,{href:"https://en.wikipedia.org/wiki/Switch_access",children:"switches"}),"."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsx)(r.p,{children:"Accessibility is a very platform-specific thing. On different platforms, there are different screen readers that might have wildly different output."}),(0,t.jsx)(r.p,{children:'Blink - Chrome\'s rendering engine - has a concept of "accessibility tree", which is then translated into different platform-specific APIs. Accessibility namespace gives users access to the Blink Accessibility Tree.'}),(0,t.jsx)(r.p,{children:'Most of the accessibility tree gets filtered out when converting from Blink AX Tree to Platform-specific AX-Tree or by assistive technologies themselves. By default, Puppeteer tries to approximate this filtering, exposing only the "interesting" nodes of the tree.'}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Accessibility"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browser",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"Browser"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"Browser"})," represents a browser instance that is either:"]}),(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:["connected to via ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.connect",children:"Puppeteer.connect()"})," or - launched by ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernode.launch",children:"PuppeteerNode.launch()"}),"."]}),"\n"]}),(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"Browser"})," ",(0,t.jsx)(r.a,{href:"/api/puppeteer.eventemitter.emit",children:"emits"})," various events which are documented in the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browserevent",children:"BrowserEvent"})," enum."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Browser"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browsercontext",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"BrowserContext"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"BrowserContext"})," represents individual user contexts within a ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"browser"}),"."]}),(0,t.jsxs)(r.p,{children:["When a ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"browser"})," is launched, it has a single ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"browser context"})," by default. Others can be created using ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser.createbrowsercontext",children:"Browser.createBrowserContext()"}),". Each context has isolated storage (cookies/localStorage/etc.)"]}),(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"BrowserContext"})," ",(0,t.jsx)(r.a,{href:"/api/puppeteer.eventemitter",children:"emits"})," various events which are documented in the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontextevent",children:"BrowserContextEvent"})," enum."]}),(0,t.jsxs)(r.p,{children:["If a ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page",children:"page"})," opens another ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page",children:"page"}),", e.g. using ",(0,t.jsx)(r.code,{children:"window.open"}),", the popup will belong to the parent ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.browsercontext",children:"page's browser context"}),"."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"BrowserContext"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cdpsession",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cdpsession",children:"CDPSession"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["The ",(0,t.jsx)(r.code,{children:"CDPSession"})," instances are used to talk raw Chrome Devtools Protocol."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["Protocol methods can be called with ",(0,t.jsx)(r.a,{href:"/api/puppeteer.cdpsession.send",children:"CDPSession.send()"})," method and protocol events can be subscribed to with ",(0,t.jsx)(r.code,{children:"CDPSession.on"})," method."]}),(0,t.jsxs)(r.p,{children:["Useful links: ",(0,t.jsx)(r.a,{href:"https://chromedevtools.github.io/devtools-protocol/",children:"DevTools Protocol Viewer"})," and ",(0,t.jsx)(r.a,{href:"https://github.com/aslushnikov/getting-started-with-cdp/blob/HEAD/README.md",children:"Getting Started with DevTools Protocol"}),"."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"CDPSession"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"connection",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.connection",children:"Connection"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"consolemessage",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.consolemessage",children:"ConsoleMessage"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"ConsoleMessage objects are dispatched by page via the 'console' event."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"coverage",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.coverage",children:"Coverage"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The Coverage class provides methods to gather information about parts of JavaScript and CSS that were used by the page."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["To output coverage in a form consumable by ",(0,t.jsx)(r.a,{href:"https://github.com/istanbuljs",children:"Istanbul"}),", see ",(0,t.jsx)(r.a,{href:"https://github.com/istanbuljs/puppeteer-to-istanbul",children:"puppeteer-to-istanbul"}),"."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"csscoverage",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.csscoverage",children:"CSSCoverage"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"devicerequestprompt",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.devicerequestprompt",children:"DeviceRequestPrompt"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Device request prompts let you respond to the page requesting for a device through an API like WebBluetooth."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"DeviceRequestPrompt"})," instances are returned via the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.waitfordeviceprompt",children:"Page.waitForDevicePrompt()"})," method."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"DeviceRequestPrompt"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"devicerequestpromptdevice",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.devicerequestpromptdevice",children:"DeviceRequestPromptDevice"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Device in a request prompt."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"DeviceRequestPromptDevice"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"dialog",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.dialog",children:"Dialog"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["Dialog instances are dispatched by the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page",children:"Page"})," via the ",(0,t.jsx)(r.code,{children:"dialog"})," event."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Dialog"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"elementhandle",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.elementhandle",children:"ElementHandle"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"ElementHandle represents an in-page DOM element."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["ElementHandles can be created with the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page._",children:"Page.$()"})," method."]}),(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-ts",children:"import puppeteer from 'puppeteer';\n\n(async () => {\n const browser = await puppeteer.launch();\n const page = await browser.newPage();\n await page.goto('https://example.com');\n const hrefElement = await page.$('a');\n await hrefElement.click();\n // ...\n})();\n"})}),(0,t.jsxs)(r.p,{children:["ElementHandle prevents the DOM element from being garbage-collected unless the handle is ",(0,t.jsx)(r.a,{href:"/api/puppeteer.jshandle.dispose",children:"disposed"}),". ElementHandles are auto-disposed when their origin frame gets navigated."]}),(0,t.jsxs)(r.p,{children:["ElementHandle instances can be used as arguments in ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page._eval",children:"Page.$eval()"})," and ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.evaluate",children:"Page.evaluate()"})," methods."]}),(0,t.jsxs)(r.p,{children:["If you're using TypeScript, ElementHandle takes a generic argument that denotes the type of element the handle is holding within. For example, if you have a handle to a ",(0,t.jsx)(r.code,{children:"<select>"})," element, you can type it as ",(0,t.jsx)(r.code,{children:"ElementHandle<HTMLSelectElement>"})," and you get some nicer type checks."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"ElementHandle"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"eventemitter",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.eventemitter",children:"EventEmitter"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The EventEmitter class that many Puppeteer classes extend."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["This allows you to listen to events that Puppeteer classes fire and act accordingly. Therefore you'll mostly use ",(0,t.jsx)(r.a,{href:"/api/puppeteer.eventemitter.on",children:"on"})," and ",(0,t.jsx)(r.a,{href:"/api/puppeteer.eventemitter.off",children:"off"})," to bind and unbind to event listeners."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"EventEmitter"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"filechooser",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.filechooser",children:"FileChooser"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"File choosers let you react to the page requesting for a file."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"FileChooser"})," instances are returned via the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.waitforfilechooser",children:"Page.waitForFileChooser()"})," method."]}),(0,t.jsx)(r.p,{children:"In browsers, only one file chooser can be opened at a time. All file choosers must be accepted or canceled. Not doing so will prevent subsequent file choosers from appearing."}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"FileChooser"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"frame",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.frame",children:"Frame"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Represents a DOM frame."}),(0,t.jsxs)(r.p,{children:["To understand frames, you can think of frames as ",(0,t.jsx)(r.code,{children:"<iframe>"})," elements. Just like iframes, frames can be nested, and when JavaScript is executed in a frame, the JavaScript does not effect frames inside the ambient frame the JavaScript executes in."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["Frame lifecycles are controlled by three events that are all dispatched on the parent ",(0,t.jsx)(r.a,{href:"/api/puppeteer.frame.page",children:"page"}),":"]}),(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.a,{href:"/api/puppeteer.pageevent",children:"PageEvent.FrameAttached"})," - ",(0,t.jsx)(r.a,{href:"/api/puppeteer.pageevent",children:"PageEvent.FrameNavigated"})," - ",(0,t.jsx)(r.a,{href:"/api/puppeteer.pageevent",children:"PageEvent.FrameDetached"})]}),"\n"]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Frame"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"httprequest",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.httprequest",children:"HTTPRequest"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Represents an HTTP request sent by a page."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["Whenever the page sends a request, such as for a network resource, the following events are emitted by Puppeteer's ",(0,t.jsx)(r.code,{children:"page"}),":"]}),(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.code,{children:"request"}),": emitted when the request is issued by the page. - ",(0,t.jsx)(r.code,{children:"requestfinished"})," - emitted when the response body is downloaded and the request is complete."]}),"\n"]}),(0,t.jsxs)(r.p,{children:["If request fails at some point, then instead of ",(0,t.jsx)(r.code,{children:"requestfinished"})," event the ",(0,t.jsx)(r.code,{children:"requestfailed"})," event is emitted."]}),(0,t.jsxs)(r.p,{children:["All of these events provide an instance of ",(0,t.jsx)(r.code,{children:"HTTPRequest"})," representing the request that occurred:"]}),(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{children:"page.on('request', request => ...)\n"})}),(0,t.jsxs)(r.p,{children:["NOTE: HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will complete with ",(0,t.jsx)(r.code,{children:"requestfinished"})," event."]}),(0,t.jsxs)(r.p,{children:["If request gets a 'redirect' response, the request is successfully finished with the ",(0,t.jsx)(r.code,{children:"requestfinished"})," event, and a new request is issued to a redirected url."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"HTTPRequest"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"httpresponse",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.httpresponse",children:"HTTPResponse"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["The HTTPResponse class represents responses which are received by the ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page",children:"Page"})," class."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"HTTPResponse"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"jscoverage",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.jscoverage",children:"JSCoverage"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"jshandle",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.jshandle",children:"JSHandle"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["Represents a reference to a JavaScript object. Instances can be created using ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.evaluatehandle",children:"Page.evaluateHandle()"}),"."]}),(0,t.jsxs)(r.p,{children:["Handles prevent the referenced JavaScript object from being garbage-collected unless the handle is purposely ",(0,t.jsx)(r.a,{href:"/api/puppeteer.jshandle.dispose",children:"disposed"}),". JSHandles are auto-disposed when their associated frame is navigated away or the parent context gets destroyed."]}),(0,t.jsxs)(r.p,{children:["Handles can be used as arguments for any evaluation function such as ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page._eval",children:"Page.$eval()"}),", ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.evaluate",children:"Page.evaluate()"}),", and ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.evaluatehandle",children:"Page.evaluateHandle()"}),". They are resolved to their referenced object."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"JSHandle"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"keyboard",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboard",children:"Keyboard"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["Keyboard provides an api for managing a virtual keyboard. The high level api is ",(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboard.type",children:"Keyboard.type()"}),", which takes raw characters and generates proper keydown, keypress/input, and keyup events on your page."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["For finer control, you can use ",(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboard.down",children:"Keyboard.down()"}),", ",(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboard.up",children:"Keyboard.up()"}),", and ",(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboard.sendcharacter",children:"Keyboard.sendCharacter()"})," to manually fire events as if they were generated from a real keyboard."]}),(0,t.jsxs)(r.p,{children:["On macOS, keyboard shortcuts like ",(0,t.jsx)(r.code,{children:"\u2318 A"})," -> Select All do not work. See ",(0,t.jsx)(r.a,{href:"https://github.com/puppeteer/puppeteer/issues/1313",children:"#1313"}),"."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Keyboard"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"locator",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.locator",children:"Locator"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Locators describe a strategy of locating objects and performing an action on them. If the action fails because the object is not ready for the action, the whole operation is retried. Various preconditions for a successful action are checked automatically."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mouse",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mouse",children:"Mouse"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["Every ",(0,t.jsx)(r.code,{children:"page"})," object has its own Mouse, accessible with [",(0,t.jsx)(r.code,{children:"page.mouse"}),"](#pagemouse)."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Mouse"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"page",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.page",children:"Page"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["Page provides methods to interact with a single tab or ",(0,t.jsx)(r.a,{href:"https://developer.chrome.com/extensions/background_pages",children:"extension background page"})," in the browser."]}),(0,t.jsx)(r.admonition,{type:"note",children:(0,t.jsx)(r.p,{children:"One Browser instance might have multiple Page instances."})}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Page"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"productlauncher",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.productlauncher",children:"ProductLauncher"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Describes a launcher - a class that is able to create and launch a browser instance."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"ProductLauncher"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"protocolerror",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.protocolerror",children:"ProtocolError"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"ProtocolError is emitted whenever there is an error from the protocol."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteer",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"Puppeteer"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The main Puppeteer class."}),(0,t.jsxs)(r.p,{children:["IMPORTANT: if you are using Puppeteer in a Node environment, you will get an instance of ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernode",children:"PuppeteerNode"})," when you import or require ",(0,t.jsx)(r.code,{children:"puppeteer"}),". That class extends ",(0,t.jsx)(r.code,{children:"Puppeteer"}),", so has all the methods documented below as well as all that are defined on ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernode",children:"PuppeteerNode"}),"."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Puppeteer"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteererror",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteererror",children:"PuppeteerError"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The base class for all Puppeteer-specific errors"}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"PuppeteerError"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteernode",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernode",children:"PuppeteerNode"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["Extends the main ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"Puppeteer"})," class with Node specific behaviour for fetching and downloading browsers."]}),(0,t.jsxs)(r.p,{children:["If you're using Puppeteer in a Node environment, this is the class you'll get when you run ",(0,t.jsx)(r.code,{children:"require('puppeteer')"})," (or the equivalent ES ",(0,t.jsx)(r.code,{children:"import"}),")."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The most common method to use is ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernode.launch",children:"launch"}),", which is used to launch and connect to a new browser instance."]}),(0,t.jsxs)(r.p,{children:["See ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"the main Puppeteer class"})," for methods common to all environments, such as ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.connect",children:"Puppeteer.connect()"}),"."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"PuppeteerNode"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"screenrecorder",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.screenrecorder",children:"ScreenRecorder"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"ScreenRecorder"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"securitydetails",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.securitydetails",children:"SecurityDetails"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The SecurityDetails class represents the security details of a response that was received over a secure connection."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"SecurityDetails"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"target",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.target",children:"Target"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["Target represents a ",(0,t.jsx)(r.a,{href:"https://chromedevtools.github.io/devtools-protocol/tot/Target/",children:"CDP target"}),". In CDP a target is something that can be debugged such a frame, a page or a worker."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Target"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"timeouterror",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.timeouterror",children:"TimeoutError"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"TimeoutError is emitted whenever certain operations are terminated due to timeout."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["Example operations are ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.waitforselector",children:"page.waitForSelector"})," or ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernode.launch",children:"puppeteer.launch"}),"."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"touchscreen",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.touchscreen",children:"Touchscreen"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The Touchscreen class exposes touchscreen events."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Touchscreen"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"tracing",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.tracing",children:"Tracing"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"The Tracing class exposes the tracing audit interface."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["You can use ",(0,t.jsx)(r.code,{children:"tracing.start"})," and ",(0,t.jsx)(r.code,{children:"tracing.stop"})," to create a trace file which can be opened in Chrome DevTools or ",(0,t.jsx)(r.a,{href:"https://chromedevtools.github.io/timeline-viewer/",children:"timeline viewer"}),"."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"Tracing"})," class."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"unsupportedoperation",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.unsupportedoperation",children:"UnsupportedOperation"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Puppeteer will throw this error if a method is not supported by the currently used protocol"})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"webworker",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.webworker",children:"WebWorker"})})}),(0,t.jsxs)("td",{children:[(0,t.jsxs)(r.p,{children:["This class represents a ",(0,t.jsx)(r.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API",children:"WebWorker"}),"."]}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsxs)(r.p,{children:["The events ",(0,t.jsx)(r.code,{children:"workercreated"})," and ",(0,t.jsx)(r.code,{children:"workerdestroyed"})," are emitted on the page object to signal the worker lifecycle."]}),(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"WebWorker"})," class."]})]})]})]})]}),"\n",(0,t.jsx)(r.h2,{id:"enumerations",children:"Enumerations"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Enumeration"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browsercontextevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontextevent",children:"BrowserContextEvent"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browserevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browserevent",children:"BrowserEvent"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["All the events a ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"browser instance"})," may emit."]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"interceptresolutionaction",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.interceptresolutionaction",children:"InterceptResolutionAction"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"locatorevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.locatorevent",children:"LocatorEvent"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"All the events that a locator instance may emit."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"pageevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.pageevent",children:"PageEvent"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"All the events that a page instance may emit."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"targettype",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.targettype",children:"TargetType"})})}),(0,t.jsx)("td",{})]})]})]}),"\n",(0,t.jsx)(r.h2,{id:"functions",children:"Functions"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Function"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"clearcustomqueryhandlers",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.clearcustomqueryhandlers",children:"clearCustomQueryHandlers()"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Deprecated:"})}),(0,t.jsxs)(r.p,{children:["Import ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"Puppeteer"})," and use the static method ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.clearcustomqueryhandlers",children:"Puppeteer.clearCustomQueryHandlers()"})]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"connect",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.connect",children:"connect(options)"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"customqueryhandlernames",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.customqueryhandlernames",children:"customQueryHandlerNames()"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Deprecated:"})}),(0,t.jsxs)(r.p,{children:["Import ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"Puppeteer"})," and use the static method ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.customqueryhandlernames",children:"Puppeteer.customQueryHandlerNames()"})]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"defaultargs",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.defaultargs",children:"defaultArgs(options)"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"executablepath",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.executablepath",children:"executablePath(channel)"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"launch",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.launch",children:"launch(options)"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"registercustomqueryhandler",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.registercustomqueryhandler",children:"registerCustomQueryHandler(name, handler)"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Deprecated:"})}),(0,t.jsxs)(r.p,{children:["Import ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"Puppeteer"})," and use the static method ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.registercustomqueryhandler",children:"Puppeteer.registerCustomQueryHandler()"})]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"trimcache",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.trimcache",children:"trimCache()"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"unregistercustomqueryhandler",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.unregistercustomqueryhandler",children:"unregisterCustomQueryHandler(name)"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Deprecated:"})}),(0,t.jsxs)(r.p,{children:["Import ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"Puppeteer"})," and use the static method ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.unregistercustomqueryhandler",children:"Puppeteer.unregisterCustomQueryHandler()"})]})]})]})]})]}),"\n",(0,t.jsx)(r.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Interface"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"actionoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.actionoptions",children:"ActionOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"autofilldata",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.autofilldata",children:"AutofillData"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"boundingbox",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.boundingbox",children:"BoundingBox"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"boxmodel",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.boxmodel",children:"BoxModel"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browserconnectoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browserconnectoptions",children:"BrowserConnectOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Generic browser options that can be passed when launching any browser or when connecting to an existing browser instance."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browsercontextevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontextevents",children:"BrowserContextEvents"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browsercontextoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browsercontextoptions",children:"BrowserContextOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browserevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browserevents",children:"BrowserEvents"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"browserlaunchargumentoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.browserlaunchargumentoptions",children:"BrowserLaunchArgumentOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Launcher options that only apply to Chrome."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cdpsessionevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cdpsessionevents",children:"CDPSessionEvents"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"clickoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.clickoptions",children:"ClickOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"commandoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.commandoptions",children:"CommandOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"commoneventemitter",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.commoneventemitter",children:"CommonEventEmitter"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"configuration",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.configuration",children:"Configuration"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Defines options to configure Puppeteer's behavior during installation and runtime."}),(0,t.jsx)(r.p,{children:"See individual properties for more information."})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"connectiontransport",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.connectiontransport",children:"ConnectionTransport"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"connectoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.connectoptions",children:"ConnectOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"consolemessagelocation",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.consolemessagelocation",children:"ConsoleMessageLocation"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"continuerequestoverrides",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.continuerequestoverrides",children:"ContinueRequestOverrides"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cookie",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cookie",children:"Cookie"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Represents a cookie object."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cookieparam",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cookieparam",children:"CookieParam"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Cookie parameter object"})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"coverageentry",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.coverageentry",children:"CoverageEntry"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"The CoverageEntry class represents one entry of the coverage report."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"credentials",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.credentials",children:"Credentials"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"csscoverageoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.csscoverageoptions",children:"CSSCoverageOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Set of configurable options for CSS coverage."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"customqueryhandler",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.customqueryhandler",children:"CustomQueryHandler"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"debuginfo",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.debuginfo",children:"DebugInfo"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:(0,t.jsx)(r.em,{children:"(Experimental)"})})})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"deletecookiesrequest",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.deletecookiesrequest",children:"DeleteCookiesRequest"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"device",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.device",children:"Device"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"elementscreenshotoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.elementscreenshotoptions",children:"ElementScreenshotOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"frameaddscripttagoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.frameaddscripttagoptions",children:"FrameAddScriptTagOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"frameaddstyletagoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.frameaddstyletagoptions",children:"FrameAddStyleTagOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"frameevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.frameevents",children:"FrameEvents"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"framewaitforfunctionoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.framewaitforfunctionoptions",children:"FrameWaitForFunctionOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"geolocationoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.geolocationoptions",children:"GeolocationOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"gotooptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.gotooptions",children:"GoToOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"interceptresolutionstate",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.interceptresolutionstate",children:"InterceptResolutionState"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"internalnetworkconditions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.internalnetworkconditions",children:"InternalNetworkConditions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"jscoverageentry",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.jscoverageentry",children:"JSCoverageEntry"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"The CoverageEntry class for JavaScript"})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"jscoverageoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.jscoverageoptions",children:"JSCoverageOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Set of configurable options for JS coverage."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"keyboardtypeoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboardtypeoptions",children:"KeyboardTypeOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"keydownoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.keydownoptions",children:"KeyDownOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"launchoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.launchoptions",children:"LaunchOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Generic launch options that can be passed when launching any browser."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"locatorevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.locatorevents",children:"LocatorEvents"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"locatoroptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.locatoroptions",children:"LocatorOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"locatorscrolloptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.locatorscrolloptions",children:"LocatorScrollOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mediafeature",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mediafeature",children:"MediaFeature"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"metrics",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.metrics",children:"Metrics"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mouseclickoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mouseclickoptions",children:"MouseClickOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mousemoveoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mousemoveoptions",children:"MouseMoveOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mouseoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mouseoptions",children:"MouseOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mousewheeloptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mousewheeloptions",children:"MouseWheelOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"moveable",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.moveable",children:"Moveable"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"networkconditions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.networkconditions",children:"NetworkConditions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"newdocumentscriptevaluation",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.newdocumentscriptevaluation",children:"NewDocumentScriptEvaluation"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"offset",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.offset",children:"Offset"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"pageevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.pageevents",children:"PageEvents"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Denotes the objects received by callback functions for page events."}),(0,t.jsxs)(r.p,{children:["See ",(0,t.jsx)(r.a,{href:"/api/puppeteer.pageevent",children:"PageEvent"})," for more detail on the events and when they are emitted."]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"pdfmargin",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.pdfmargin",children:"PDFMargin"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"pdfoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.pdfoptions",children:"PDFOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["Valid options to configure PDF generation via ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.pdf",children:"Page.pdf()"}),"."]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"point",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.point",children:"Point"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteerlaunchoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteerlaunchoptions",children:"PuppeteerLaunchOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"remoteaddress",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.remoteaddress",children:"RemoteAddress"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"responseforrequest",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.responseforrequest",children:"ResponseForRequest"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Required response data to fulfill a request with."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"screencastoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.screencastoptions",children:"ScreencastOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:(0,t.jsx)(r.em,{children:"(Experimental)"})})})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"screenshotclip",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.screenshotclip",children:"ScreenshotClip"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"screenshotoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.screenshotoptions",children:"ScreenshotOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"serializedaxnode",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.serializedaxnode",children:"SerializedAXNode"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Represents a Node and the properties of it that are relevant to Accessibility."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"snapshotoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.snapshotoptions",children:"SnapshotOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"tracingoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.tracingoptions",children:"TracingOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"viewport",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.viewport",children:"Viewport"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"waitfornetworkidleoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.waitfornetworkidleoptions",children:"WaitForNetworkIdleOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"waitforoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.waitforoptions",children:"WaitForOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"waitforselectoroptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.waitforselectoroptions",children:"WaitForSelectorOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"waitfortargetoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.waitfortargetoptions",children:"WaitForTargetOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"waittimeoutoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.waittimeoutoptions",children:"WaitTimeoutOptions"})})}),(0,t.jsx)("td",{})]})]})]}),"\n",(0,t.jsx)(r.h2,{id:"namespaces",children:"Namespaces"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Namespace"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsx)("tbody",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cdpsessionevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cdpsessionevent",children:"CDPSessionEvent"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Events that the CDPSession class emits."})})]})})]}),"\n",(0,t.jsx)(r.h2,{id:"variables",children:"Variables"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Variable"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"default_intercept_resolution_priority",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.default_intercept_resolution_priority",children:"DEFAULT_INTERCEPT_RESOLUTION_PRIORITY"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"The default cooperative request interception resolution priority"})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"knowndevices",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.knowndevices",children:"KnownDevices"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["A list of devices to be used with ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.emulate",children:"Page.emulate()"}),"."]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mousebutton",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mousebutton",children:"MouseButton"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Enum of valid mouse buttons."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"predefinednetworkconditions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.predefinednetworkconditions",children:"PredefinedNetworkConditions"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["A list of network conditions to be used with ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page.emulatenetworkconditions",children:"Page.emulateNetworkConditions()"}),"."]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteer",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer",children:"puppeteer"})})}),(0,t.jsx)("td",{})]})]})]}),"\n",(0,t.jsx)(r.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Type Alias"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"actionresult",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.actionresult",children:"ActionResult"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"awaitable",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.awaitable",children:"Awaitable"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"awaitableiterable",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.awaitableiterable",children:"AwaitableIterable"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"awaitablepredicate",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.awaitablepredicate",children:"AwaitablePredicate"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"awaitedlocator",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.awaitedlocator",children:"AwaitedLocator"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cdpevents",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cdpevents",children:"CDPEvents"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"chromereleasechannel",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.chromereleasechannel",children:"ChromeReleaseChannel"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"consolemessagetype",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.consolemessagetype",children:"ConsoleMessageType"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"The supported types for console messages."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cookiepriority",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cookiepriority",children:"CookiePriority"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["Represents the cookie's 'Priority' status: ",(0,t.jsx)(r.a,{href:"https://tools.ietf.org/html/draft-west-cookie-priority-00",children:"https://tools.ietf.org/html/draft-west-cookie-priority-00"})]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cookiesamesite",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cookiesamesite",children:"CookieSameSite"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["Represents the cookie's 'SameSite' status: ",(0,t.jsx)(r.a,{href:"https://tools.ietf.org/html/draft-west-first-party-cookies",children:"https://tools.ietf.org/html/draft-west-first-party-cookies"})]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"cookiesourcescheme",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.cookiesourcescheme",children:"CookieSourceScheme"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:'Represents the source scheme of the origin that originally set the cookie. A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.'})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"elementfor",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.elementfor",children:"ElementFor"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"errorcode",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.errorcode",children:"ErrorCode"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"evaluatefunc",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.evaluatefunc",children:"EvaluateFunc"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"evaluatefuncwith",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.evaluatefuncwith",children:"EvaluateFuncWith"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"eventswithwildcard",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.eventswithwildcard",children:"EventsWithWildcard"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"eventtype",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.eventtype",children:"EventType"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"experimentsconfiguration",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.experimentsconfiguration",children:"ExperimentsConfiguration"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"Defines experiment options for Puppeteer."}),(0,t.jsx)(r.p,{children:"See individual properties for more information."})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"flattenhandle",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.flattenhandle",children:"FlattenHandle"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"handlefor",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.handlefor",children:"HandleFor"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"handleor",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.handleor",children:"HandleOr"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"handler",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.handler",children:"Handler"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"innerparams",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.innerparams",children:"InnerParams"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"keyinput",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.keyinput",children:"KeyInput"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["All the valid keys that can be passed to functions that take user input, such as ",(0,t.jsx)(r.a,{href:"/api/puppeteer.keyboard.press",children:"keyboard.press"})]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"keypressoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.keypressoptions",children:"KeyPressOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"locatorclickoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.locatorclickoptions",children:"LocatorClickOptions"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"lowercasepaperformat",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.lowercasepaperformat",children:"LowerCasePaperFormat"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mapper",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mapper",children:"Mapper"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"mousebutton",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.mousebutton",children:"MouseButton"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"nodefor",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.nodefor",children:"NodeFor"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"paperformat",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.paperformat",children:"PaperFormat"})})}),(0,t.jsxs)("td",{children:[(0,t.jsx)(r.p,{children:"All the valid paper format types when printing a PDF."}),(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Remarks:"})}),(0,t.jsx)(r.p,{children:"The sizes of each format are as follows:"}),(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"Letter"}),": 8.5in x 11in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"Legal"}),": 8.5in x 14in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"Tabloid"}),": 11in x 17in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"Ledger"}),": 17in x 11in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A0"}),": 33.1in x 46.8in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A1"}),": 23.4in x 33.1in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A2"}),": 16.54in x 23.4in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A3"}),": 11.7in x 16.54in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A4"}),": 8.27in x 11.7in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A5"}),": 5.83in x 8.27in"]}),"\n"]}),"\n",(0,t.jsxs)(r.li,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"A6"}),": 4.13in x 5.83in"]}),"\n"]}),"\n"]})]})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"permission",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.permission",children:"Permission"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"predicate",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.predicate",children:"Predicate"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"product",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.product",children:"Product"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Supported products."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"protocollifecycleevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.protocollifecycleevent",children:"ProtocolLifeCycleEvent"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"protocoltype",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.protocoltype",children:"ProtocolType"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteerlifecycleevent",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteerlifecycleevent",children:"PuppeteerLifeCycleEvent"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"puppeteernodelaunchoptions",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteernodelaunchoptions",children:"PuppeteerNodeLaunchOptions"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:["Utility type exposed to enable users to define options that can be passed to ",(0,t.jsx)(r.code,{children:"puppeteer.launch"})," without having to list the set of all types."]})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"quad",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.quad",children:"Quad"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"resourcetype",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.resourcetype",children:"ResourceType"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Resource types for HTTPRequests as perceived by the rendering engine."})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"targetfiltercallback",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.targetfiltercallback",children:"TargetFilterCallback"})})}),(0,t.jsx)("td",{})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"visibilityoption",children:(0,t.jsx)(r.a,{href:"/api/puppeteer.visibilityoption",children:"VisibilityOption"})})}),(0,t.jsx)("td",{})]})]})]})]})}function h(e={}){const{wrapper:r}={...(0,n.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},75251:(e,r,s)=>{var t=s(67294),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function p(e,r,s){var t,i={},p=null,l=null;for(t in void 0!==s&&(p=""+s),void 0!==r.key&&(p=""+r.key),void 0!==r.ref&&(l=r.ref),r)d.call(r,t)&&!a.hasOwnProperty(t)&&(i[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===i[t]&&(i[t]=r[t]);return{$$typeof:n,type:e,key:p,ref:l,props:i,_owner:c.current}}r.Fragment=i,r.jsx=p,r.jsxs=p},85893:(e,r,s)=>{e.exports=s(75251)},11151:(e,r,s)=>{s.d(r,{Z:()=>c,a:()=>d});var t=s(67294);const n={},i=t.createContext(n);function d(e){const r=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:d(e.components),t.createElement(i.Provider,{value:r},e.children)}}}]); |