【问题标题】:Launch nightwatch with Selenium Server Usage使用 Selenium 服务器启动 nightwatch
【发布时间】:2017-03-24 15:15:10
【问题描述】:

我读到了这个 - http://nightwatchjs.org/getingstarted#chromedriver 在这种情况下,服务器路径是 .jar 文件。 是否可以在没有 jar 文件的情况下运行 selenium 服务器?例如,https://www.npmjs.com/package/selenium-standalone? 如何在 json 中指向 selenium 服务器的文件?

【问题讨论】:

    标签: nightwatch.js


    【解决方案1】:

    Selenium-standalone 不能在没有 JAR 的情况下运行,它只是为您管理它们。安装后可以找到,例如:

    % npm install --save-dev selenium-standalone
    ...
    % node_modules/selenium-standalone/bin/selenium-standalone install --silent
    % find node_modules -name '*.jar'
    node_modules/selenium-standalone/.selenium/selenium-server/3.0.1-server.jar
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-15
      • 2016-06-14
      • 1970-01-01
      • 1970-01-01
      • 2011-12-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多