当Protractor与硒中心一起运行时,Phantomjs会失败

时间:2015-06-04 15:01:07

标签: selenium-webdriver phantomjs protractor

我有一个量角器配置文件如下,我使用phantomjs来运行测试。它在我使用seleniumServerJar时有效但在我使用seleniumAddress(指向集线器)时失败,并且驱动程序可执行文件不存在'信息!有没有使用selenium-hub运行phantomjs的特定配置?

exports.config = {

   //Fails when i use this
  //seleniumAddress:"http://selenium-hub.com:4659/wd/hub",
//Works when i use this selenium-standalone jar
seleniumServerJar: '../../../node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar',

  framework: 'cucumber',
  specs: [
'features/*.feature'
  ],


  capabilities: {
        "browserName": "phantomjs",
        "phantomjs.binary.path": require("phantomjs").path,
        "phantomjs.ghostdriver.cli.args": ["--loglevel=DEBUG"]
  },

  baseUrl: '',

  rootElement: 'body',

  resultJsonOutputFile: 'src/test/report.json',

  cucumberOpts: {
        require: 'features/steps/*_steps.js',
        }

};

0 个答案:

没有答案