puppeteer/new-docs/puppeteer.keyboard.press.md

27 lines
602 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Keyboard](./puppeteer.keyboard.md) &gt; [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 |
| --- | --- | --- |
| key | KeyInput | |
| options | { delay?: number; text?: string; } | |
<b>Returns:</b>
Promise&lt;void&gt;