【问题标题】:Is expected that tests that works on chrome, fails on firefox?预计适用于 chrome 的测试在 Firefox 上会失败吗?
【发布时间】:2019-03-22 10:54:25
【问题描述】:

我有一个测试在 chrome 上通过,但在 firefox 上失败。

这里是测试:

Scenario.only('Test', (I) => {

    I.see('token')
    I.click('.fa-edit')
    I.wait(1)
    I.fillField('input.EditableTitle__input','enkot')

    I.see('enkot'); fails here
});

输入已经具有值“token”。 使用 pause(),我看到该字段没有在 firefox 中填充,它只是在失去焦点后擦除实际值。 在chrome中它可以正常工作

  • Codeceptjs 1.4.3
  • webdriverio 4.13.2
  • 硒6.15.3
  • 火狐62.0.3

【问题讨论】:

标签: selenium webdriver-io codeceptjs


【解决方案1】:

您在 CodeceptJs 上的问题是 fillFilled work on chrome, not on firefox。看起来这是一个 Firefox 问题,它在 selenium 3.4.0 和 geckodriver 0.18.0 上运行良好

【讨论】:

  • 尝试了旧版本,它适用于某些步骤。但其他适用于新闻版本的步骤开始失败。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-09
  • 2011-04-24
  • 1970-01-01
  • 2013-09-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多