赛普拉斯的问题是.type()在反向键入给定值

时间:2019-11-30 15:05:03

标签: cypress

我同时使用了{rightarrow}和5分钟的延迟,以查看输入框中输入的值是否正确,但仍沿相反方向给出值

我使用的代码行如下

cy.get("input[name='providerName']", { timeout: 60000 }).type('united states{rightarrow}',{delay:5000}).should("have.value", "United States");

请在命令日志的屏幕抓图下方找到

如果您需要其他详细信息,请随时告诉我

1 个答案:

答案 0 :(得分:0)

我认为这与赛普拉斯无关,但与Chrome无关。

我从这个问题(https://superuser.com/questions/1216422/chrome-google-search-bar-text-typed-backwards)复制了答案:

Quick fix:

In the address bad, go to 'about://flags'.
Switch 'Force UI Direction' from 'default' to 'Left to Right'.
Running Chrome in Private mode also fixes the issue, which leads me to believe that this is being caused by some extension or setting.