Angularjs 带量角器和幻影的SSL

Angularjs 带量角器和幻影的SSL,angularjs,ssl,phantomjs,protractor,Angularjs,Ssl,Phantomjs,Protractor,我正在尝试将PhantomJS与Progrator一起使用,并将web应用程序托管在https上。我需要指定一个证书,以使这项工作。这是我的量角器配置文件: exports.config = { // The address of a running selenium server. seleniumAddress: 'http://localhost:4444/wd/hub', // Spec patterns are relative to the location of th

我正在尝试将PhantomJS与Progrator一起使用,并将web应用程序托管在https上。我需要指定一个证书,以使这项工作。这是我的量角器配置文件:

exports.config = {
  // The address of a running selenium server.
  seleniumAddress: 'http://localhost:4444/wd/hub',

  // Spec patterns are relative to the location of this config.
  specs: [
  'spec/*.js',
'spec/**/*.js'
],

capabilities: {
browserName: 'phantomjs',
'phantomjs.cli.args':['--ssl-certificates-path=cert.p12','--ignore-ssl-errors=true']
},

// A base URL for your application under test. Calls to protractor.get()
// with relative paths will be prepended with this.
baseUrl: 'https://localhost:3000',

jasmineNodeOpts: {
  onComplete: null,
  isVerbose: false,
  showColors: true,
  includeStackTrace: true,
  defaultTimeoutInterval: 100000
}
};
终端的结果是: 17:00:56.340信息-正在执行:[执行脚本:返回窗口.location.href;,[]) 17:00:56.346信息-完成:[执行脚本:返回窗口.location.href;,[]]

似乎有一个acceptSslCerts选项被推送到日志中,但我不知道如何设置它:

会话[df2bf1e0-48e4-11e4-a415-8755c19a8d30]-Session.negotiatedCapabilities-{“浏览器名”:“幻影”,“版本”:“1.9.7”,“驱动程序名”:“幻影驱动程序”,“驱动程序版本”:“1.1.0”,“平台格式”:“mac-unknown-64位”,“javascriptEnabled”:true,“takesScreenshot”:true,“Handless”:false,“数据库启用警报”:false,“locationContextEnabled”:false,“applicationCacheEnabled”:false,“browserConnectionEnabled”:false,“CSSSelectorEnabled”:true,“WebStorage Enabled”:false,“rotatable”:false,“acceptSslCerts”:false,“nativeEvents”:true,“proxy”:“direct”}

量角器本身抛出此错误:

错误:等待量角器与页面同步时出错:{“消息”:“找不到变量:角度”

有什么想法吗