TestCafe:在文本字段中输入的文本是向后的

时间:2019-06-06 16:05:35

标签: google-chrome automated-tests textfield e2e-testing testcafe

在文本字段中输入文本是向后输入

这在Safari中不会发生,并且过去从未发生过。没有进行任何更改,应该引起此情况。

TestCafe 1.2.0 NPM 6.9.0

导出异步功能logInMyAccount(emailElement,userEmail,passElement,userPassword,按钮){   等待     .typeText(Selector(emailElement),userEmail,{startPos:0})     .typeText(Selector(passElement),userPassword)     .click(Selector(button)); }

等待funct.logInMyAccount('#username',active.email,'#userpass',active.password,'#signIn');

应将电子邮件输入为:active@mysite.com 输入的实际电子邮件:moc.etisym@evitca

1 个答案:

答案 0 :(得分:2)

我们正在此线程的上下文中致力于解决此问题:

typeText with Chrome 75 types each character at beginning of input