086c08998b
This adds the new docs that are generated by API Extractor via TSDoc. They are sparse because we do not yet use TSDoc in the codebase. This is the starting point and from here we can work through all the different classes and improve the documentation.
51 lines
2.5 KiB
Markdown
51 lines
2.5 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Target](./puppeteer.target.md)
|
|
|
|
## Target class
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare class Target
|
|
```
|
|
|
|
## Constructors
|
|
|
|
| Constructor | Modifiers | Description |
|
|
| --- | --- | --- |
|
|
| [(constructor)(targetInfo, browserContext, sessionFactory, ignoreHTTPSErrors, defaultViewport)](./puppeteer.target._constructor_.md) | | Constructs a new instance of the <code>Target</code> class |
|
|
|
|
## Properties
|
|
|
|
| Property | Modifiers | Type | Description |
|
|
| --- | --- | --- | --- |
|
|
| [\_browserContext](./puppeteer.target._browsercontext.md) | | [BrowserContext](./puppeteer.browsercontext.md) | |
|
|
| [\_closedCallback](./puppeteer.target._closedcallback.md) | | () => void | |
|
|
| [\_defaultViewport](./puppeteer.target._defaultviewport.md) | | Viewport | |
|
|
| [\_ignoreHTTPSErrors](./puppeteer.target._ignorehttpserrors.md) | | boolean | |
|
|
| [\_initializedCallback](./puppeteer.target._initializedcallback.md) | | (x: boolean) => void | |
|
|
| [\_initializedPromise](./puppeteer.target._initializedpromise.md) | | Promise<boolean> | |
|
|
| [\_isClosedPromise](./puppeteer.target._isclosedpromise.md) | | Promise<boolean> | |
|
|
| [\_isInitialized](./puppeteer.target._isinitialized.md) | | boolean | |
|
|
| [\_pagePromise](./puppeteer.target._pagepromise.md) | | Promise<[Page](./puppeteer.page.md)<!-- -->> | |
|
|
| [\_sessionFactory](./puppeteer.target._sessionfactory.md) | | () => Promise<[CDPSession](./puppeteer.cdpsession.md)<!-- -->> | |
|
|
| [\_targetId](./puppeteer.target._targetid.md) | | string | |
|
|
| [\_targetInfo](./puppeteer.target._targetinfo.md) | | Protocol.Target.TargetInfo | |
|
|
| [\_workerPromise](./puppeteer.target._workerpromise.md) | | Promise<[WebWorker](./puppeteer.webworker.md)<!-- -->> | |
|
|
|
|
## Methods
|
|
|
|
| Method | Modifiers | Description |
|
|
| --- | --- | --- |
|
|
| [\_targetInfoChanged(targetInfo)](./puppeteer.target._targetinfochanged.md) | | |
|
|
| [browser()](./puppeteer.target.browser.md) | | |
|
|
| [browserContext()](./puppeteer.target.browsercontext.md) | | |
|
|
| [createCDPSession()](./puppeteer.target.createcdpsession.md) | | |
|
|
| [opener()](./puppeteer.target.opener.md) | | |
|
|
| [page()](./puppeteer.target.page.md) | | |
|
|
| [type()](./puppeteer.target.type.md) | | |
|
|
| [url()](./puppeteer.target.url.md) | | |
|
|
| [worker()](./puppeteer.target.worker.md) | | |
|
|
|