【问题标题】:in selenium-cucumber-js how to run headless test在 selenium-cucumber-js 中如何运行无头测试
【发布时间】:2020-03-31 06:43:44
【问题描述】:

我正在使用selenium-cucumber-js 库 我有以下问题

  1. 想在测试中检查本地存储,我该怎么做?
  2. 我可以访问窗口对象吗?
  3. 如何使用 Headless 运行它?

谢谢

【问题讨论】:

  • 你试过了吗?

标签: selenium testing selenium-webdriver automation cucumberjs


【解决方案1】:

1 & 2) 据我所知,这可以使用纯 javascript 来完成。有一个查询,已经在repohere回复了。

3) 您可以在此line 中将start-maximized 替换为--headless

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-13
    • 1970-01-01
    相关资源
    最近更新 更多