mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
25 lines
926 B
Markdown
25 lines
926 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Target](./puppeteer.target.md) > [(constructor)](./puppeteer.target._constructor_.md)
|
||
|
|
||
|
## Target.(constructor)
|
||
|
|
||
|
Constructs a new instance of the `Target` class
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
constructor(targetInfo: Protocol.Target.TargetInfo, browserContext: BrowserContext, sessionFactory: () => Promise<CDPSession>, ignoreHTTPSErrors: boolean, defaultViewport: Viewport | null);
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| targetInfo | Protocol.Target.TargetInfo | |
|
||
|
| browserContext | [BrowserContext](./puppeteer.browsercontext.md) | |
|
||
|
| sessionFactory | () => Promise<[CDPSession](./puppeteer.cdpsession.md)<!-- -->> | |
|
||
|
| ignoreHTTPSErrors | boolean | |
|
||
|
| defaultViewport | Viewport \| null | |
|
||
|
|