mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
6657364364
* docs(new): migrate ElementHandle to TSDoc Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
27 lines
629 B
Markdown
27 lines
629 B
Markdown
<!-- 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 |
|
|
| --- | --- | --- |
|
|
| key | [KeyInput](./puppeteer.keyinput.md) | |
|
|
| options | { delay?: number; text?: string; } | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Promise<void>
|
|
|