【问题标题】:TestCafe reload page and re-execute fixture hookTestCafe 重新加载页面并重新执行夹具挂钩
【发布时间】:2019-08-19 10:07:27
【问题描述】:

重新加载的常识是使用await t.eval(() => location.reload(true));

但是,使用这种方法,如果您使用固定钩子安装了任何东西(例如 testcafe-testing-library),则重新加载页面后,它将不再可用。

有没有办法重新执行夹具挂钩?

提出的相关 GitHub 问题 https://github.com/testing-library/testcafe-testing-library/issues/28

【问题讨论】:

    标签: testing automation e2e-testing page-refresh testcafe


    【解决方案1】:

    请使用the new TestCafe feature 将客户端脚本注入测试页面,您的脚本在重新加载后仍然可用。

    【讨论】:

      猜你喜欢
      • 2019-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-28
      • 2019-05-02
      • 2020-03-19
      • 2021-11-28
      • 1970-01-01
      相关资源
      最近更新 更多