【问题标题】:Provide config file to selenium-standalone NPM library向 selenium-standalone NPM 库提供配置文件
【发布时间】:2021-09-14 05:57:05
【问题描述】:

所以 Selenium-standalone 提供了它的API to manage Selenium configs

但是,该文件位于节点模块本身(node_modules/selenium-standalone/lib/default-config.js)中,因此如果删除节点模块,我在其中设置的所有配置都将消失。

而且由于它是作为 devDependency 添加的,所以我并不真正关心生产(如果这有意义的话),但至少我想要在启动服务器时提供我的配置文件- selenium-standalone start 或在 npm i 发生时添加配置文件。或者在重新安装节点模块时我还能做些什么来保留该文件?

【问题讨论】:

    标签: selenium selenium-webdriver end-to-end angular-test


    【解决方案1】:

    有一个标志来指定自定义配置文件:

    npx selenium-standalone install --config=/path/to/config.json

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 2019-04-28
      • 2020-07-26
      • 1970-01-01
      • 2011-03-05
      • 2017-03-31
      • 2023-04-01
      相关资源
      最近更新 更多