Gretting all.In TestCafe,there are pressKey()
anddispatchevent()
to use on press keyboard .I'm now struggling on one thing:I can't press the Numpad by neither pressKey()
or dispatchevent()
.Here's what I've tried:
.dispatchEvent(#textbox,'keydown',{code:'numpad1'})
This actually fired,but it didn't type in the text 1
by the numpad1
.Same thing on Digit1
.Want to know if TestCafe support the different pressKey by Numpad and Digit?Thanks for reply.
Edit:
I tried to use dispatchevent()
Here to fire Digit1
and numpad1
,it works good,but if i tried on www.google.com,it fails.