2022-08-06 14:49:20 +00:00
|
|
|
---
|
2023-08-02 12:50:46 +00:00
|
|
|
sidebar_label: Page.createCDPSession
|
2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
|
2023-08-02 12:50:46 +00:00
|
|
|
# Page.createCDPSession() method
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2023-08-02 12:50:46 +00:00
|
|
|
Creates a Chrome Devtools Protocol session attached to the page.
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
2023-08-02 12:50:46 +00:00
|
|
|
class Page {
|
2023-11-15 10:48:54 +00:00
|
|
|
abstract createCDPSession(): Promise<CDPSession>;
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[CDPSession](./puppeteer.cdpsession.md)>
|