question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a `pressKey` helper?

See original GitHub issue

How about adding a pressKey helper which fires keydown, keypress and then keyup?

EDIT: Updated helper name.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cibernoxcommented, Mar 24, 2017

Green light then for someone to implement it.

1reaction
cibernoxcommented, Mar 22, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found