<h2class="anchor anchorWithStickyNavbar_LWe7"id="classes">Classes<ahref="#classes"class="hash-link"aria-label="Direct link to Classes"title="Direct link to Classes"></a></h2>
<table><thead><tr><th><p>Class</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="accessibility"><ahref="/next/api/puppeteer.accessibility">Accessibility</a></span></td><td><p>The Accessibility class provides methods for inspecting the browser's accessibility tree. The accessibility tree is used by assistive technology such as <ahref="https://en.wikipedia.org/wiki/Screen_reader"target="_blank"rel="noopener noreferrer">screen readers</a> or <ahref="https://en.wikipedia.org/wiki/Switch_access"target="_blank"rel="noopener noreferrer">switches</a>.</p></td></tr><tr><td><spanid="browser"><ahref="/next/api/puppeteer.browser">Browser</a></span></td><td><p><ahref="/next/api/puppeteer.browser">Browser</a> represents a browser instance that is either:</p><ul>
<li>connected to via <ahref="/next/api/puppeteer.puppeteer.connect">Puppeteer.connect()</a> or - launched by <ahref="/next/api/puppeteer.puppeteernode.launch">PuppeteerNode.launch()</a>.</li>
</ul><p><ahref="/next/api/puppeteer.browser">Browser</a><ahref="/next/api/puppeteer.eventemitter.emit">emits</a> various events which are documented in the <ahref="/next/api/puppeteer.browserevent">BrowserEvent</a> enum.</p></td></tr><tr><td><spanid="browsercontext"><ahref="/next/api/puppeteer.browsercontext">BrowserContext</a></span></td><td><p><ahref="/next/api/puppeteer.browsercontext">BrowserContext</a> represents individual user contexts within a <ahref="/next/api/puppeteer.browser">browser</a>.</p><p>When a <ahref="/next/api/puppeteer.browser">browser</a> is launched, it has a single <ahref="/next/api/puppeteer.browsercontext">browser context</a> by default. Others can be created using <ahref="/next/api/puppeteer.browser.createbrowsercontext">Browser.createBrowserContext()</a>. Each context has isolated storage (cookies/localStorage/etc.)</p><p><ahref="/next/api/puppeteer.browsercontext">BrowserContext</a><ahref="/next/api/puppeteer.eventemitter">emits</a> various events which are documented in the <ahref="/next/api/puppeteer.browsercontextevent">BrowserContextEvent</a> enum.</p><p>If a <ahref="/next/api/puppeteer.page">page</a> opens another <ahref="/next/api/puppeteer.page">page</a>, e.g. using <code>window.open</code>, the popup will belong to the parent <ahref="/next/api/puppeteer.page.browsercontext">page's browser context</a>.</p></td></tr><tr><td><spanid="cdpsession"><ahref="/next/api/puppeteer.cdpsession">CDPSession</a></span></td><td><p>The <code>CDPSession</code> instances are used to talk raw Chrome Devtools Protocol.</p></td></tr><tr><td><spanid="connection"><ahref="/next/api/puppeteer.connection">Connection</a></span></td><td></td></tr><tr><td><spanid="consolemessage"><ahref="/next/api/puppeteer.consolemessage">ConsoleMessage</a></span></td><td><p>ConsoleMessage objects are dispatched by page via the 'console' event.</p></td></tr><tr><td><spanid="coverage"><ahref="/next/api/puppeteer.coverage">Coverage</a></span></td><td><p>The Coverage class provides methods to gather information about parts of JavaScript and CSS that were used by the page.</p></td></tr><tr><td><spanid="csscoverage"><ahref="/next/api/puppeteer.csscoverage">CSSCoverage</a></span></td><td></td></tr><tr><td><spanid="devicerequestprompt"><ahref="/next/api/puppeteer.devicerequestprompt">DeviceRequestPrompt</a></span></td><td><p>Device request prompts let you respond to the page requesting for a device through an API like WebBluetooth.</p></td></tr><tr><td><spanid="devicerequestpromptdevice"><ahref="/next/api/puppeteer.devicerequestpromptdevice">DeviceRequestPromptDevice</a></span></td><td><p>Device in a request prompt.</p></td></tr><tr><td><spanid="dialog"><ahref="/next/api/puppeteer.dialog">Dialog</a></span></td><td><p>Dialog instances are dispatched by the <ahref="/next/api/puppeteer.page">Page</a> via the <code>dialog</code> event.</p></td></tr><tr><td><spanid="elementhandle"><ahref="/next/api/puppeteer.elementhandle">ElementHandle</a></span></td><td><p>ElementHandle represents an in-page DOM element.</p></td></tr><tr><td><spanid="eventemitter"><ahref="/next/api/puppeteer.eventemitter">EventEmitter</a></span></td><td><p>The EventEmitter class that many Puppeteer classes extend.</p></td></tr><tr><td><spanid="filechooser"><ahref="/next/api/puppeteer.filechooser">FileChooser</a></span></td><td><p>File choosers let you react to the page requesting for a file.</p></td></tr><tr><td><spanid="frame"><ahref="/next/api/puppeteer.frame">Frame</a></span></td><td><p>Represents a DOM frame.</p><p>To understand frames, you can think of frames as <code><iframe></code> 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.</p></td></tr><tr><td><spanid="httprequest"><ahref="/next/api/puppeteer.httprequest">HTTPRequest</a></span></td><td><p>Represents an HTTP request sent by a page.</p></td></tr><tr><td><spanid="httpresponse"><ahref="/next/api/puppeteer.httpr
<h2class="anchor anchorWithStickyNavbar_LWe7"id="enumerations">Enumerations<ahref="#enumerations"class="hash-link"aria-label="Direct link to Enumerations"title="Direct link to Enumerations"></a></h2>
<table><thead><tr><th><p>Enumeration</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="browsercontextevent"><ahref="/next/api/puppeteer.browsercontextevent">BrowserContextEvent</a></span></td><td></td></tr><tr><td><spanid="browserevent"><ahref="/next/api/puppeteer.browserevent">BrowserEvent</a></span></td><td><p>All the events a <ahref="/next/api/puppeteer.browser">browser instance</a> may emit.</p></td></tr><tr><td><spanid="interceptresolutionaction"><ahref="/next/api/puppeteer.interceptresolutionaction">InterceptResolutionAction</a></span></td><td></td></tr><tr><td><spanid="locatorevent"><ahref="/next/api/puppeteer.locatorevent">LocatorEvent</a></span></td><td><p>All the events that a locator instance may emit.</p></td></tr><tr><td><spanid="pageevent"><ahref="/next/api/puppeteer.pageevent">PageEvent</a></span></td><td><p>All the events that a page instance may emit.</p></td></tr><tr><td><spanid="targettype"><ahref="/next/api/puppeteer.targettype">TargetType</a></span></td><td></td></tr></tbody></table>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="functions">Functions<ahref="#functions"class="hash-link"aria-label="Direct link to Functions"title="Direct link to Functions"></a></h2>
<table><thead><tr><th><p>Function</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="clearcustomqueryhandlers"><ahref="/next/api/puppeteer.clearcustomqueryhandlers">clearCustomQueryHandlers()</a></span></td><td><p><strong>Deprecated:</strong></p><p>Import <ahref="/next/api/puppeteer.puppeteer">Puppeteer</a> and use the static method <ahref="/next/api/puppeteer.puppeteer.clearcustomqueryhandlers">Puppeteer.clearCustomQueryHandlers()</a></p></td></tr><tr><td><spanid="connect"><ahref="/next/api/puppeteer.connect">connect(options)</a></span></td><td></td></tr><tr><td><spanid="customqueryhandlernames"><ahref="/next/api/puppeteer.customqueryhandlernames">customQueryHandlerNames()</a></span></td><td><p><strong>Deprecated:</strong></p><p>Import <ahref="/next/api/puppeteer.puppeteer">Puppeteer</a> and use the static method <ahref="/next/api/puppeteer.puppeteer.customqueryhandlernames">Puppeteer.customQueryHandlerNames()</a></p></td></tr><tr><td><spanid="defaultargs"><ahref="/next/api/puppeteer.defaultargs">defaultArgs(options)</a></span></td><td></td></tr><tr><td><spanid="executablepath"><ahref="/next/api/puppeteer.executablepath">executablePath(channel)</a></span></td><td></td></tr><tr><td><spanid="launch"><ahref="/next/api/puppeteer.launch">launch(options)</a></span></td><td></td></tr><tr><td><spanid="registercustomqueryhandler"><ahref="/next/api/puppeteer.registercustomqueryhandler">registerCustomQueryHandler(name, handler)</a></span></td><td><p><strong>Deprecated:</strong></p><p>Import <ahref="/next/api/puppeteer.puppeteer">Puppeteer</a> and use the static method <ahref="/next/api/puppeteer.puppeteer.registercustomqueryhandler">Puppeteer.registerCustomQueryHandler()</a></p></td></tr><tr><td><spanid="trimcache"><ahref="/next/api/puppeteer.trimcache">trimCache()</a></span></td><td></td></tr><tr><td><spanid="unregistercustomqueryhandler"><ahref="/next/api/puppeteer.unregistercustomqueryhandler">unregisterCustomQueryHandler(name)</a></span></td><td><p><strong>Deprecated:</strong></p><p>Import <ahref="/next/api/puppeteer.puppeteer">Puppeteer</a> and use the static method <ahref="/next/api/puppeteer.puppeteer.unregistercustomqueryhandler">Puppeteer.unregisterCustomQueryHandler()</a></p></td></tr></tbody></table>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="interfaces">Interfaces<ahref="#interfaces"class="hash-link"aria-label="Direct link to Interfaces"title="Direct link to Interfaces"></a></h2>
<table><thead><tr><th><p>Interface</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="actionoptions"><ahref="/next/api/puppeteer.actionoptions">ActionOptions</a></span></td><td></td></tr><tr><td><spanid="autofilldata"><ahref="/next/api/puppeteer.autofilldata">AutofillData</a></span></td><td></td></tr><tr><td><spanid="boundingbox"><ahref="/next/api/puppeteer.boundingbox">BoundingBox</a></span></td><td></td></tr><tr><td><spanid="boxmodel"><ahref="/next/api/puppeteer.boxmodel">BoxModel</a></span></td><td></td></tr><tr><td><spanid="browserconnectoptions"><ahref="/next/api/puppeteer.browserconnectoptions">BrowserConnectOptions</a></span></td><td><p>Generic browser options that can be passed when launching any browser or when connecting to an existing browser instance.</p></td></tr><tr><td><spanid="browsercontextevents"><ahref="/next/api/puppeteer.browsercontextevents">BrowserContextEvents</a></span></td><td></td></tr><tr><td><spanid="browsercontextoptions"><ahref="/next/api/puppeteer.browsercontextoptions">BrowserContextOptions</a></span></td><td></td></tr><tr><td><spanid="browserevents"><ahref="/next/api/puppeteer.browserevents">BrowserEvents</a></span></td><td></td></tr><tr><td><spanid="browserlaunchargumentoptions"><ahref="/next/api/puppeteer.browserlaunchargumentoptions">BrowserLaunchArgumentOptions</a></span></td><td><p>Launcher options that only apply to Chrome.</p></td></tr><tr><td><spanid="cdpsessionevents"><ahref="/next/api/puppeteer.cdpsessionevents">CDPSessionEvents</a></span></td><td></td></tr><tr><td><spanid="clickoptions"><ahref="/next/api/puppeteer.clickoptions">ClickOptions</a></span></td><td></td></tr><tr><td><spanid="commandoptions"><ahref="/next/api/puppeteer.commandoptions">CommandOptions</a></span></td><td></td></tr><tr><td><spanid="commoneventemitter"><ahref="/next/api/puppeteer.commoneventemitter">CommonEventEmitter</a></span></td><td></td></tr><tr><td><spanid="configuration"><ahref="/next/api/puppeteer.configuration">Configuration</a></span></td><td><p>Defines options to configure Puppeteer's behavior during installation and runtime.</p><p>See individual properties for more information.</p></td></tr><tr><td><spanid="connectiontransport"><ahref="/next/api/puppeteer.connectiontransport">ConnectionTransport</a></span></td><td></td></tr><tr><td><spanid="connectoptions"><ahref="/next/api/puppeteer.connectoptions">ConnectOptions</a></span></td><td></td></tr><tr><td><spanid="consolemessagelocation"><ahref="/next/api/puppeteer.consolemessagelocation">ConsoleMessageLocation</a></span></td><td></td></tr><tr><td><spanid="continuerequestoverrides"><ahref="/next/api/puppeteer.continuerequestoverrides">ContinueRequestOverrides</a></span></td><td></td></tr><tr><td><spanid="cookie"><ahref="/next/api/puppeteer.cookie">Cookie</a></span></td><td><p>Represents a cookie object.</p></td></tr><tr><td><spanid="cookieparam"><ahref="/next/api/puppeteer.cookieparam">CookieParam</a></span></td><td><p>Cookie parameter object</p></td></tr><tr><td><spanid="coverageentry"><ahref="/next/api/puppeteer.coverageentry">CoverageEntry</a></span></td><td><p>The CoverageEntry class represents one entry of the coverage report.</p></td></tr><tr><td><spanid="credentials"><ahref="/next/api/puppeteer.credentials">Credentials</a></span></td><td></td></tr><tr><td><spanid="csscoverageoptions"><ahref="/next/api/puppeteer.csscoverageoptions">CSSCoverageOptions</a></span></td><td><p>Set of configurable options for CSS coverage.</p></td></tr><tr><td><spanid="customqueryhandler"><ahref="/next/api/puppeteer.customqueryhandler">CustomQueryHandler</a></span></td><td></td></tr><tr><td><spanid="debuginfo"><ahref="/next/api/puppeteer.debuginfo">DebugInfo</a></span></td><td></td></tr><tr><td><spanid="deletecookiesrequest"><ahref="/next/api/puppeteer.deletecookiesrequest">DeleteCookiesRequest</a></span></td><td></td></tr><tr><td><spanid="device"><ahref="/next/api/puppeteer.device">Device</a></span></td><td></td></tr><tr><td><spanid="elementscreenshotoptions"><ahref="/next/api/puppe
<h2class="anchor anchorWithStickyNavbar_LWe7"id="namespaces">Namespaces<ahref="#namespaces"class="hash-link"aria-label="Direct link to Namespaces"title="Direct link to Namespaces"></a></h2>
<table><thead><tr><th><p>Namespace</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="cdpsessionevent"><ahref="/next/api/puppeteer.cdpsessionevent">CDPSessionEvent</a></span></td><td><p>Events that the CDPSession class emits.</p></td></tr></tbody></table>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="variables">Variables<ahref="#variables"class="hash-link"aria-label="Direct link to Variables"title="Direct link to Variables"></a></h2>
<table><thead><tr><th><p>Variable</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="default_intercept_resolution_priority"><ahref="/next/api/puppeteer.default_intercept_resolution_priority">DEFAULT_INTERCEPT_RESOLUTION_PRIORITY</a></span></td><td><p>The default cooperative request interception resolution priority</p></td></tr><tr><td><spanid="knowndevices"><ahref="/next/api/puppeteer.knowndevices">KnownDevices</a></span></td><td><p>A list of devices to be used with <ahref="/next/api/puppeteer.page.emulate">Page.emulate()</a>.</p></td></tr><tr><td><spanid="mousebutton"><ahref="/next/api/puppeteer.mousebutton">MouseButton</a></span></td><td><p>Enum of valid mouse buttons.</p></td></tr><tr><td><spanid="predefinednetworkconditions"><ahref="/next/api/puppeteer.predefinednetworkconditions">PredefinedNetworkConditions</a></span></td><td><p>A list of network conditions to be used with <ahref="/next/api/puppeteer.page.emulatenetworkconditions">Page.emulateNetworkConditions()</a>.</p></td></tr><tr><td><spanid="puppeteer"><ahref="/next/api/puppeteer.puppeteer">puppeteer</a></span></td><td></td></tr></tbody></table>
<h2class="anchor anchorWithStickyNavbar_LWe7"id="type-aliases">Type Aliases<ahref="#type-aliases"class="hash-link"aria-label="Direct link to Type Aliases"title="Direct link to Type Aliases"></a></h2>
<table><thead><tr><th><p>Type Alias</p></th><th><p>Description</p></th></tr></thead><tbody><tr><td><spanid="actionresult"><ahref="/next/api/puppeteer.actionresult">ActionResult</a></span></td><td></td></tr><tr><td><spanid="awaitable"><ahref="/next/api/puppeteer.awaitable">Awaitable</a></span></td><td></td></tr><tr><td><spanid="awaitableiterable"><ahref="/next/api/puppeteer.awaitableiterable">AwaitableIterable</a></span></td><td></td></tr><tr><td><spanid="awaitablepredicate"><ahref="/next/api/puppeteer.awaitablepredicate">AwaitablePredicate</a></span></td><td></td></tr><tr><td><spanid="awaitedlocator"><ahref="/next/api/puppeteer.awaitedlocator">AwaitedLocator</a></span></td><td></td></tr><tr><td><spanid="cdpevents"><ahref="/next/api/puppeteer.cdpevents">CDPEvents</a></span></td><td></td></tr><tr><td><spanid="chromereleasechannel"><ahref="/next/api/puppeteer.chromereleasechannel">ChromeReleaseChannel</a></span></td><td></td></tr><tr><td><spanid="consolemessagetype"><ahref="/next/api/puppeteer.consolemessagetype">ConsoleMessageType</a></span></td><td><p>The supported types for console messages.</p></td></tr><tr><td><spanid="cookiepriority"><ahref="/next/api/puppeteer.cookiepriority">CookiePriority</a></span></td><td><p>Represents the cookie's 'Priority' status: <ahref="https://tools.ietf.org/html/draft-west-cookie-priority-00"target="_blank"rel="noopener noreferrer">https://tools.ietf.org/html/draft-west-cookie-priority-00</a></p></td></tr><tr><td><spanid="cookiesamesite"><ahref="/next/api/puppeteer.cookiesamesite">CookieSameSite</a></span></td><td><p>Represents the cookie's 'SameSite' status: <ahref="https://tools.ietf.org/html/draft-west-first-party-cookies"target="_blank"rel="noopener noreferrer">https://tools.ietf.org/html/draft-west-first-party-cookies</a></p></td></tr><tr><td><spanid="cookiesourcescheme"><ahref="/next/api/puppeteer.cookiesourcescheme">CookieSourceScheme</a></span></td><td><p>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.</p></td></tr><tr><td><spanid="elementfor"><ahref="/next/api/puppeteer.elementfor">ElementFor</a></span></td><td></td></tr><tr><td><spanid="errorcode"><ahref="/next/api/puppeteer.errorcode">ErrorCode</a></span></td><td></td></tr><tr><td><spanid="evaluatefunc"><ahref="/next/api/puppeteer.evaluatefunc">EvaluateFunc</a></span></td><td></td></tr><tr><td><spanid="evaluatefuncwith"><ahref="/next/api/puppeteer.evaluatefuncwith">EvaluateFuncWith</a></span></td><td></td></tr><tr><td><spanid="eventswithwildcard"><ahref="/next/api/puppeteer.eventswithwildcard">EventsWithWildcard</a></span></td><td></td></tr><tr><td><spanid="eventtype"><ahref="/next/api/puppeteer.eventtype">EventType</a></span></td><td></td></tr><tr><td><spanid="experimentsconfiguration"><ahref="/next/api/puppeteer.experimentsconfiguration">ExperimentsConfiguration</a></span></td><td><p>Defines experiment options for Puppeteer.</p><p>See individual properties for more information.</p></td></tr><tr><td><spanid="flattenhandle"><ahref="/next/api/puppeteer.flattenhandle">FlattenHandle</a></span></td><td></td></tr><tr><td><spanid="handlefor"><ahref="/next/api/puppeteer.handlefor">HandleFor</a></span></td><td></td></tr><tr><td><spanid="handleor"><ahref="/next/api/puppeteer.handleor">HandleOr</a></span></td><td></td></tr><tr><td><spanid="handler"><ahref="/next/api/puppeteer.handler">Handler</a></span></td><td></td></tr><tr><td><spanid="innerparams"><ahref="/next/api/puppeteer.innerparams">InnerParams</a></span></td><td></td></tr><tr><td><spanid="keyinput"><ahref="/next/api/puppeteer.keyinput">KeyInput</a></span></td><td><p>All the valid keys that can be passed to functions that take user input, such as <ahref="/next/api/puppeteer.keyboard.press">keyboard.press</a></p></td></tr><tr><td><spanid="keypressoptions"><ahref="/next/api/puppeteer.keypressoptions">KeyPre