我怎么能在gruntfile.js中提到phantomjs路径?

时间:2017-01-20 06:52:50

标签: javascript selenium gruntjs phantomjs protractor

Grunt

不支持JSON格式化密钥'phantomjs.binary.path'
grunt.initConfig ({
protractor: {
  options: {
    configFile: './protractor-conf.js',
    keepAlive: true,
    noColor: false
  },

  phantomjs: {
    options: {
        args: {
          capabilities: {

            browserName: "phantomjs",
            'phantomjs.binary.path': './node_modules/.bin/phantomjs',
          },
        },
    }
  },

},

enter link description here

0 个答案:

没有答案