Add a `pressKey` helper?
See original GitHub issueHow about adding a pressKey
helper which fires keydown
, keypress
and then keyup
?
EDIT: Updated helper name.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
.pressKey() | TestController | Test API | API | Docs - TestCafe
t.pressKey Method. Presses the specified keyboard keys. Does not require a target element and can be chained with other TestController methods.
Read more >Press key (FR) - Perfecto Help
Press key (FR). Perfecto Command. mobile:presskey. Purpose. Clicks on a single or sequence of device special keys (either control or keyboard).
Read more >Element: keypress event - Web APIs | MDN
The keypress event is fired when a key that produces a character value is pressed down.
Read more >Key Presses in Python - Stack Overflow
A better way to put it, I need to emulate a key press, I.E. not capture a key press. More Info (as requested):...
Read more >Simulate Keypresses In Python - Nitratine.net
To do this we will need to press ctrl, press and release c and then release ctrl. keyboard.press(Key.ctrl) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Green light then for someone to implement it.
Actually having a single helper that simulates a full key interation (fires keydown, keyup and keypress in sequence) sounds reasonable, the same way
click
fires mousedown, focus, mouseup and click in sequence.I’d call it
pressKey
tho, but it sounds reasonable.