2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [CDPSession](./puppeteer.cdpsession.md) > [send](./puppeteer.cdpsession.send.md)
|
|
|
|
|
|
|
|
## CDPSession.send() method
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-07-10 10:51:52 +00:00
|
|
|
send<T extends keyof ProtocolMapping.Commands>(method: T, ...paramArgs: ProtocolMapping.Commands[T]['paramsType']): Promise<ProtocolMapping.Commands[T]['returnType']>;
|
2020-06-04 14:56:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| method | T | |
|
2020-07-10 10:51:52 +00:00
|
|
|
| paramArgs | ProtocolMapping.Commands\[T\]\['paramsType'\] | |
|
2020-06-04 14:56:45 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-07-10 10:51:52 +00:00
|
|
|
Promise<ProtocolMapping.Commands\[T\]\['returnType'\]>
|
2020-06-04 14:56:45 +00:00
|
|
|
|