New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typeText
with Chrome 75 types each character at beginning of input
#3865
typeText
with Chrome 75 types each character at beginning of input
#3865
Comments
I am noticing this too, testcafe fails to fill in our email field incorrectly |
looks like is only affecting the input type=email |
Thank you for this information. The issue appeared after the Chrome update to the 75 version. We'll try to provide a fix soon. |
While we are working on a fix, you can use the following workaround: await t.typeText(inputEmail, 'test@highspot.com', { paste: true }) |
@AlexKamaev - thanks for the quick response! Regarding the workaround, I did try that (with success) before posting the issue. However, given the number of places in our test code that we use Thanks again! |
Chiming in just to confirm that we are also experiencing the issue. A couple of points if that helps.
Many thanks @AlexKamaev for being on top of this one and providing quick feedback. @highspotjeremy did you try executing the test with another browser? Not sure it's applicable to your setup but just FYI you can switch to Firefox maybe? |
Thank everybody for posting additional information about the issue. I found the cause of this behavior and hope to fix it soon. |
confirming with @nobitagit; we've switched our tests from using HeadlessChrome 75 to Firefox (latest) on a travis build with success until the issue is resolved. |
the proposed workaround did not work for me when using option I managed to do the cleanup with |
A less drastic workaround is to change the default browser when running your projects. Since this should be a temporary issue, I don't see a reason in altering the way we write our scripts due to this. As nobitagit brought up, is there a way in TestCafe to specify which version of a browser we want to run the project in? Something like "chrome:74"? Or in the configuration file: "browsers": { "browser": "chrome", "version": "74.*"}? |
While there is no way to specify the browser version directly, you may specify a path to the browser with a required version
I want to inform you that the fix (thanks to @AlexKamaev) for the original issue is ready and we're going to publish an alpha version today. |
FYI |
Verified, thanks all! |
This still seems to be happening when doing mobile emulation. Here's the command where I'm seeing it: testcafe "chrome:emulation:device=iphone x" tests It works fine with desktop Chrome. |
@highspotjeremy, thank you for sharing your findings with us. Indeed, this issue still occurs when doing mobile emulation. We will look into it. |
Hello, I still have issue with 1.2.1 and this code :
|
@djgreg13 test('Find "testcafe-example" repo on GitHub', async (t) => {
const repo = Selector('.repo-list > li > div');
// search github
await t
.maximizeWindow()
.typeText('form[action="/search"]', 'testcafe-example user:mjhea0')
.pressKey('enter');
// check li for results
await t
.expect(repo.innerText).contains('mjhea0/testcafe-example');
}); In addition, I want to mention that this ticket is about input with types |
@AlexKamaev, Chrome 74 works fine with 1.2.1, so i rollback my chrome ver while waiting the 1.2.2 |
@djgreg13 |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
What is your Test Scenario?
Type text into a text input field in our application using the
typeText
action.What is the Current behavior?
With Chrome 74, the text is typed correctly. With Chrome 75 (updated today), the characters are typed, but the cursor moves to the start of the input with each character, so the typed text is in the reverse order.
What is the Expected behavior?
Text typed into the input is in the correct order.
What is your web application and your TestCafe test code?
This is occurring with the sign-in for our application: https://app.highspot.com
Simplified test:
Your complete test report:
Steps to Reproduce:
test.js
testcafe chrome test.js
Your Environment details:
The text was updated successfully, but these errors were encountered: