Update docs/src/input.md

Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-06-17 15:22:25 +02:00 committed by GitHub
parent 6142ac96db
commit 5f74f3344b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -407,7 +407,7 @@ page.locator('#area').press_sequentially('Hello World!')
```csharp
// Press keys one by one
await page.Locator("#area").PressSequentiallyAsync("Hello World!");
await Page.Locator("#area").PressSequentiallyAsync("Hello World!");
```
This method will emit all the necessary keyboard events, with all the `keydown`, `keyup`, `keypress` events in place. You can even specify the optional `delay` between the key presses to simulate real user behavior.