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) > [Keyboard](./puppeteer.keyboard.md) > [press](./puppeteer.keyboard.press.md)
|
|
|
|
|
|
|
|
## Keyboard.press() method
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
press(key: KeyInput, options?: {
|
|
|
|
delay?: number;
|
|
|
|
text?: string;
|
|
|
|
}): Promise<void>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-22 15:21:57 +00:00
|
|
|
| key | [KeyInput](./puppeteer.keyinput.md) | |
|
2020-06-04 14:56:45 +00:00
|
|
|
| options | { delay?: number; text?: string; } | |
|
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|