Hi
I have an input textbox with a mask, when i try to input a value with testcafe it seems to enter the text in fron of the mask and push it to the right. I have tried all sorts of things, it only seems to happen with firefox, chrome is fine.
So i have the following field in an asp core project.
C#@(Html.DevExtreme().TextBoxFor(model => model.UserNumber).MaxLength(11).Mask("000 000 000))
Now in testcafe i have tried the following to input the value:
JavaScript.typeText('#UserNumber', '234234234', {
caretPos: 0
})
.click('#UserNumber')
.pressKey('3 7 7 7 7 7 7 7 3')
This is the error its returning
JavaScript error details:
this._prevCaret is undefined
p
Hello,
Thank you for your report. I tired to reproduce the issue on my side, but I didn't see the JavaScript error in the console. However, I see that the typeText action works incorrectly in Firefox. We will investigate this behavior and update this thread once we have any news.
Awesome thank you, the JS error appears for me in the testcafe test results.