【问题标题】:failed because this element is disabled失败,因为此元素已禁用
【发布时间】:2022-08-18 03:44:13
【问题描述】:

你好。

我有时会遇到柏树错误,但有时会通过测试。 我已经尝试了一切,但我需要它始终工作

    标签: cypress


    【解决方案1】:

    您必须添加 force: true 才能单击禁用按钮:

    cy.get('x.forward_button1').click({force: true})
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-23
      • 1970-01-01
      • 1970-01-01
      • 2017-05-26
      • 2017-12-12
      相关资源
      最近更新 更多