selectText操作始终等到超时结束

时间:2018-08-15 07:59:10

标签: automated-tests e2e-testing testcafe

我试图用selectText清除输入字段,然后按Delete键。 运行测试时,selectText操作始终等待直到超时结束,然后再选择输入文本。这是错误还是正常行为? 几乎在页面加载后立即运行了typetext,因此已正确找到该元素。选择器超时,如果保留默认值(10000毫秒)

浏览器:Firefox 61(64位) 作业系统:Windows 10 TestCafe:0.21.0

test('Select Text wait till timeout', async t => {
  const firstNameInput = Selector('#first-name');

  await t
    .typeText(firstNameInput, 'Max')
    .selectText(firstNameInput)
    .pressKey('delete');
)};

2 个答案:

答案 0 :(得分:0)

否,此行为不正确。 TestCafe团队将在以下问题的上下文中对其进行修复:

https://github.com/DevExpress/testcafe/issues/2080

答案 1 :(得分:0)

仅作后续操作,我们已修复此线程中描述的问题:

https://github.com/DevExpress/testcafe/issues/2080

该修复程序在version 0.22.0及更高版本的TestCafe中提供。