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

This commit is contained in:
Joel Einbinder 2021-04-26 20:54:40 -07:00 committed by GitHub
parent 83480850d3
commit abb61456d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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]>

1
types/types.d.ts vendored
View File

@ -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
*/