Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(keyboard): clarify how page.type works for non-US characters (#6273)

Joel Einbinderabb61456d153
diff --git a/docs/src/api/class-keyboard.md b/docs/src/api/class-keyboard.md
index be49dc8cd1..c830f98457 100644
--- a/docs/src/api/class-keyboard.md
+++ b/docs/src/api/class-keyboard.md
@@ -286,6 +286,10 @@ page.keyboard.type("World", delay=100) # types slower, like a user
Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.
:::
+:::note
+For characters that are not on a US keyboard, only an `input` event will be sent.
+:::
+
### param: Keyboard.type.text
- `text` <[string]>
diff --git a/types/types.d.ts b/types/types.d.ts
index ab740185ea..e9cee28f75 100644
--- a/types/types.d.ts
+++ b/types/types.d.ts
@@ -9583,6 +9583,7 @@ export interface Keyboard {
* ```
*
* > NOTE: Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.
+ * > NOTE: For characters that are not on a US keyboard, only an `input` event will be sent.
* @param text A text to type into a focused element.
* @param options
*/