You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pressKey() does not work properly on Firefox #4115
Your complete test code (or attach your test files):
test('Should test pressKey',async()=>{awaitt.typeText(Selector('#nativeInput'),'1').pressKey('backspace').expect(Selector('#nativeInput').value).eql('');});
Console logs:
// after typing '1' to the input
1
true
// after pressing backspace
�
false
Steps to Reproduce:
Create an input which handles keypress
Try to use TestCafe's pressKey('backspace') with it
Hello @PierreRott ,
I couldn't reproduce the issue. I tried this with TestCafe 1.2.1, NodeJS 10.16.0, and Firefox 68.0.1. Please check the following test example:
import{Selector}from'testcafe';fixture`Fixture`.page`https://jsfiddle.net/qmLvroy4/`;test('Should test pressKey',asynct=>{awaitt.switchToIframe(Selector('[name="result"]')).typeText(Selector('#nativeInput'),'1').pressKey('backspace').expect(Selector('#nativeInput').value).eql('');});
Can you please modify it to show the issue in action?
Hello, is there any update regarding this issue? Seems to me the Firefox pressKey issue is still relevant. I was able to reproduce both cases (#4115 (comment), #4115 (comment)) on testcafe 2.0.0 and FF 107.
Activity
aleks-pro commentedon Aug 7, 2019
Hello @PierreRott ,
I couldn't reproduce the issue. I tried this with TestCafe 1.2.1, NodeJS 10.16.0, and Firefox 68.0.1. Please check the following test example:
Can you please modify it to show the issue in action?
PierreRott commentedon Aug 12, 2019
JSFiddle example has been modified:
AlexKamaev commentedon Aug 12, 2019
@PierreRott
Thank you for your example, I was able to reproduce the issue.
16 remaining items
daimoonis commentedon Nov 29, 2022
Hello, is there any update regarding this issue? Seems to me the Firefox pressKey issue is still relevant. I was able to reproduce both cases (#4115 (comment), #4115 (comment)) on testcafe 2.0.0 and FF 107.
github-actions commentedon Nov 30, 2022
No updates yet. Once we get any results, we will post them in this thread.
hendriku commentedon Feb 9, 2023
The issue was resolved for us through an update to testcafe 2.3.0
fix: firefox keypress event doesn't work with backspace, tab, etc, if…