136 lines
8.7 KiB
Markdown
136 lines
8.7 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md)
|
||
|
|
||
|
## Page class
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare class Page extends EventEmitter
|
||
|
```
|
||
|
|
||
|
## Constructors
|
||
|
|
||
|
| Constructor | Modifiers | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [(constructor)(client, target, ignoreHTTPSErrors)](./puppeteer.page._constructor_.md) | | Constructs a new instance of the <code>Page</code> class |
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Property | Modifiers | Type | Description |
|
||
|
| --- | --- | --- | --- |
|
||
|
| [\_accessibility](./puppeteer.page._accessibility.md) | | [Accessibility](./puppeteer.accessibility.md) | |
|
||
|
| [\_client](./puppeteer.page._client.md) | | [CDPSession](./puppeteer.cdpsession.md) | |
|
||
|
| [\_closed](./puppeteer.page._closed.md) | | boolean | |
|
||
|
| [\_coverage](./puppeteer.page._coverage.md) | | [Coverage](./puppeteer.coverage.md) | |
|
||
|
| [\_disconnectPromise](./puppeteer.page._disconnectpromise.md) | | Promise<Error> | |
|
||
|
| [\_emulationManager](./puppeteer.page._emulationmanager.md) | | EmulationManager | |
|
||
|
| [\_fileChooserInterceptors](./puppeteer.page._filechooserinterceptors.md) | | Set<Function> | |
|
||
|
| [\_frameManager](./puppeteer.page._framemanager.md) | | [FrameManager](./puppeteer.framemanager.md) | |
|
||
|
| [\_javascriptEnabled](./puppeteer.page._javascriptenabled.md) | | boolean | |
|
||
|
| [\_keyboard](./puppeteer.page._keyboard.md) | | [Keyboard](./puppeteer.keyboard.md) | |
|
||
|
| [\_mouse](./puppeteer.page._mouse.md) | | [Mouse](./puppeteer.mouse.md) | |
|
||
|
| [\_pageBindings](./puppeteer.page._pagebindings.md) | | Map<string, Function> | |
|
||
|
| [\_screenshotTaskQueue](./puppeteer.page._screenshottaskqueue.md) | | ScreenshotTaskQueue | |
|
||
|
| [\_target](./puppeteer.page._target.md) | | [Target](./puppeteer.target.md) | |
|
||
|
| [\_timeoutSettings](./puppeteer.page._timeoutsettings.md) | | TimeoutSettings | |
|
||
|
| [\_touchscreen](./puppeteer.page._touchscreen.md) | | [Touchscreen](./puppeteer.touchscreen.md) | |
|
||
|
| [\_tracing](./puppeteer.page._tracing.md) | | [Tracing](./puppeteer.tracing.md) | |
|
||
|
| [\_viewport](./puppeteer.page._viewport.md) | | Viewport \| null | |
|
||
|
| [\_workers](./puppeteer.page._workers.md) | | Map<string, [WebWorker](./puppeteer.webworker.md)<!-- -->> | |
|
||
|
| [accessibility](./puppeteer.page.accessibility.md) | | [Accessibility](./puppeteer.accessibility.md) | |
|
||
|
| [coverage](./puppeteer.page.coverage.md) | | [Coverage](./puppeteer.coverage.md) | |
|
||
|
| [keyboard](./puppeteer.page.keyboard.md) | | [Keyboard](./puppeteer.keyboard.md) | |
|
||
|
| [mouse](./puppeteer.page.mouse.md) | | [Mouse](./puppeteer.mouse.md) | |
|
||
|
| [touchscreen](./puppeteer.page.touchscreen.md) | | [Touchscreen](./puppeteer.touchscreen.md) | |
|
||
|
| [tracing](./puppeteer.page.tracing.md) | | [Tracing](./puppeteer.tracing.md) | |
|
||
|
|
||
|
## Methods
|
||
|
|
||
|
| Method | Modifiers | Description |
|
||
|
| --- | --- | --- |
|
||
|
| [\_addConsoleMessage(type, args, stackTrace)](./puppeteer.page._addconsolemessage.md) | | |
|
||
|
| [\_buildMetricsObject(metrics)](./puppeteer.page._buildmetricsobject.md) | | |
|
||
|
| [\_emitMetrics(event)](./puppeteer.page._emitmetrics.md) | | |
|
||
|
| [\_go(delta, options)](./puppeteer.page._go.md) | | |
|
||
|
| [\_handleException(exceptionDetails)](./puppeteer.page._handleexception.md) | | |
|
||
|
| [\_initialize()](./puppeteer.page._initialize.md) | | |
|
||
|
| [\_onBindingCalled(event)](./puppeteer.page._onbindingcalled.md) | | |
|
||
|
| [\_onConsoleAPI(event)](./puppeteer.page._onconsoleapi.md) | | |
|
||
|
| [\_onDialog(event)](./puppeteer.page._ondialog.md) | | |
|
||
|
| [\_onFileChooser(event)](./puppeteer.page._onfilechooser.md) | | |
|
||
|
| [\_onLogEntryAdded(event)](./puppeteer.page._onlogentryadded.md) | | |
|
||
|
| [\_onTargetCrashed()](./puppeteer.page._ontargetcrashed.md) | | |
|
||
|
| [\_screenshotTask(format, options)](./puppeteer.page._screenshottask.md) | | |
|
||
|
| [\_sessionClosePromise()](./puppeteer.page._sessionclosepromise.md) | | |
|
||
|
| [$(selector)](./puppeteer.page._.md) | | |
|
||
|
| [$$(selector)](./puppeteer.page.__.md) | | |
|
||
|
| [$$eval(selector, pageFunction, args)](./puppeteer.page.__eval.md) | | |
|
||
|
| [$eval(selector, pageFunction, args)](./puppeteer.page._eval.md) | | |
|
||
|
| [$x(expression)](./puppeteer.page._x.md) | | |
|
||
|
| [addScriptTag(options)](./puppeteer.page.addscripttag.md) | | |
|
||
|
| [addStyleTag(options)](./puppeteer.page.addstyletag.md) | | |
|
||
|
| [authenticate(credentials)](./puppeteer.page.authenticate.md) | | |
|
||
|
| [bringToFront()](./puppeteer.page.bringtofront.md) | | |
|
||
|
| [browser()](./puppeteer.page.browser.md) | | |
|
||
|
| [browserContext()](./puppeteer.page.browsercontext.md) | | |
|
||
|
| [click(selector, options)](./puppeteer.page.click.md) | | |
|
||
|
| [close(options)](./puppeteer.page.close.md) | | |
|
||
|
| [content()](./puppeteer.page.content.md) | | |
|
||
|
| [cookies(urls)](./puppeteer.page.cookies.md) | | |
|
||
|
| [create(client, target, ignoreHTTPSErrors, defaultViewport)](./puppeteer.page.create.md) | <code>static</code> | |
|
||
|
| [deleteCookie(cookies)](./puppeteer.page.deletecookie.md) | | |
|
||
|
| [emulate(options)](./puppeteer.page.emulate.md) | | |
|
||
|
| [emulateMediaFeatures(features)](./puppeteer.page.emulatemediafeatures.md) | | |
|
||
|
| [emulateMediaType(type)](./puppeteer.page.emulatemediatype.md) | | |
|
||
|
| [emulateTimezone(timezoneId)](./puppeteer.page.emulatetimezone.md) | | |
|
||
|
| [emulateVisionDeficiency(type)](./puppeteer.page.emulatevisiondeficiency.md) | | |
|
||
|
| [evaluate(pageFunction, args)](./puppeteer.page.evaluate.md) | | |
|
||
|
| [evaluateHandle(pageFunction, args)](./puppeteer.page.evaluatehandle.md) | | |
|
||
|
| [evaluateOnNewDocument(pageFunction, args)](./puppeteer.page.evaluateonnewdocument.md) | | |
|
||
|
| [exposeFunction(name, puppeteerFunction)](./puppeteer.page.exposefunction.md) | | |
|
||
|
| [focus(selector)](./puppeteer.page.focus.md) | | |
|
||
|
| [frames()](./puppeteer.page.frames.md) | | |
|
||
|
| [goBack(options)](./puppeteer.page.goback.md) | | |
|
||
|
| [goForward(options)](./puppeteer.page.goforward.md) | | |
|
||
|
| [goto(url, options)](./puppeteer.page.goto.md) | | |
|
||
|
| [hover(selector)](./puppeteer.page.hover.md) | | |
|
||
|
| [isClosed()](./puppeteer.page.isclosed.md) | | |
|
||
|
| [mainFrame()](./puppeteer.page.mainframe.md) | | |
|
||
|
| [metrics()](./puppeteer.page.metrics.md) | | |
|
||
|
| [pdf(options)](./puppeteer.page.pdf.md) | | |
|
||
|
| [queryObjects(prototypeHandle)](./puppeteer.page.queryobjects.md) | | |
|
||
|
| [reload(options)](./puppeteer.page.reload.md) | | |
|
||
|
| [screenshot(options)](./puppeteer.page.screenshot.md) | | |
|
||
|
| [select(selector, values)](./puppeteer.page.select.md) | | |
|
||
|
| [setBypassCSP(enabled)](./puppeteer.page.setbypasscsp.md) | | |
|
||
|
| [setCacheEnabled(enabled)](./puppeteer.page.setcacheenabled.md) | | |
|
||
|
| [setContent(html, options)](./puppeteer.page.setcontent.md) | | |
|
||
|
| [setCookie(cookies)](./puppeteer.page.setcookie.md) | | |
|
||
|
| [setDefaultNavigationTimeout(timeout)](./puppeteer.page.setdefaultnavigationtimeout.md) | | |
|
||
|
| [setDefaultTimeout(timeout)](./puppeteer.page.setdefaulttimeout.md) | | |
|
||
|
| [setExtraHTTPHeaders(headers)](./puppeteer.page.setextrahttpheaders.md) | | |
|
||
|
| [setGeolocation(options)](./puppeteer.page.setgeolocation.md) | | |
|
||
|
| [setJavaScriptEnabled(enabled)](./puppeteer.page.setjavascriptenabled.md) | | |
|
||
|
| [setOfflineMode(enabled)](./puppeteer.page.setofflinemode.md) | | |
|
||
|
| [setRequestInterception(value)](./puppeteer.page.setrequestinterception.md) | | |
|
||
|
| [setUserAgent(userAgent)](./puppeteer.page.setuseragent.md) | | |
|
||
|
| [setViewport(viewport)](./puppeteer.page.setviewport.md) | | |
|
||
|
| [tap(selector)](./puppeteer.page.tap.md) | | |
|
||
|
| [target()](./puppeteer.page.target.md) | | |
|
||
|
| [title()](./puppeteer.page.title.md) | | |
|
||
|
| [type(selector, text, options)](./puppeteer.page.type.md) | | |
|
||
|
| [url()](./puppeteer.page.url.md) | | |
|
||
|
| [viewport()](./puppeteer.page.viewport.md) | | |
|
||
|
| [waitFor(selectorOrFunctionOrTimeout, options, args)](./puppeteer.page.waitfor.md) | | |
|
||
|
| [waitForFileChooser(options)](./puppeteer.page.waitforfilechooser.md) | | |
|
||
|
| [waitForFunction(pageFunction, options, args)](./puppeteer.page.waitforfunction.md) | | |
|
||
|
| [waitForNavigation(options)](./puppeteer.page.waitfornavigation.md) | | |
|
||
|
| [waitForRequest(urlOrPredicate, options)](./puppeteer.page.waitforrequest.md) | | |
|
||
|
| [waitForResponse(urlOrPredicate, options)](./puppeteer.page.waitforresponse.md) | | |
|
||
|
| [waitForSelector(selector, options)](./puppeteer.page.waitforselector.md) | | |
|
||
|
| [waitForXPath(xpath, options)](./puppeteer.page.waitforxpath.md) | | |
|
||
|
| [workers()](./puppeteer.page.workers.md) | | |
|
||
|
|