Skip to content

Commit e113ce4

Browse files
committed
feat(Page): add snippets
1 parent 9884efe commit e113ce4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

snippets/snippets.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,15 @@
388388
"body": "await page.keyboard.press('$0');",
389389
"description": "Presses on a specific key within the page"
390390
},
391-
"page.keyboard.sendCharacter": {
392-
"prefix": "pw-page-keyboard-sendCharacter",
393-
"body": "await page.keyboard.sendCharacter('$0');",
394-
"description": "Dispatches a `keypress` and `input` event within the page"
391+
"page.keyboard.insertText": {
392+
"prefix": "pw-page-keyboard-insertText",
393+
"body": "await page.keyboard.insertText('$0');",
394+
"description": "Dispatches an `input` event within the page"
395395
},
396396
"page.keyboard.type": {
397397
"prefix": "pw-page-keyboard-type",
398398
"body": "await page.keyboard.type('$0');",
399-
"description": "Types a text into a focused element within the page"
399+
"description": "Dispatches `keydown`, `keypress`/`input` and `keyup` events within the page for each given character"
400400
},
401401
"page.keyboard.up": {
402402
"prefix": "pw-page-keyboard-up",

0 commit comments

Comments
 (0)