【问题标题】:Can't run protractor on internet explorer无法在 Internet Explorer 上运行量角器
【发布时间】:2017-09-24 01:16:02
【问题描述】:

我尝试在 IE11 上运行量角器,但我一直遇到这个失败:

E/launcher - 启动 Internet Explorer 时出现意外错误。并非所有区域的保护模式设置都相同。必须将所有区域的启用保护模式设置为相同的值(启用或禁用)。

我确实在资源管理器中设置了所有区域,但仍然出现此错误。

我的 conf.js 文件是:

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

  // Capabilities to be passed to the webdriver instance.
  capabilities: {
    browserName: 'internet explorer'
  },

  // Spec patterns are relative to the configuration file location passed
  // to protractor (in this example conf.js).
  // They may include glob patterns.
  specs: ['todo-spec.js'],

  // Options to be passed to Jasmine-node.
  jasmineNodeOpts: {
    showColors: true, // Use colors in the command line report.
  }
};

请帮忙。 摇晃

【问题讨论】:

    标签: protractor


    【解决方案1】:

    转到工具 -> Internet 选项 -> 安全选项卡并将所有区域设置为相同的保护模式(可以启用或禁用)。

    【讨论】:

      【解决方案2】:

      尝试包含这些功能:

      capabilities: {
          ...
          "ignoreProtectedModeSettings": true
      }
      

      【讨论】:

      • 没用。我收到新错误:[17:39:56] E/configParser - 错误代码:105 [17:39:56] E/configParser - 错误消息:加载配置文件 conf.js [17:39:56] E/ 失败configParser - C:\Users\moran\Protractor\conf.js:9 'ignoreProtectedModeSettings': true, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
      • 这是因为您的 config.js 格式不正确。缺了点什么。这些功能不会引发错误。
      猜你喜欢
      • 2015-03-09
      • 1970-01-01
      • 2014-06-12
      • 1970-01-01
      • 2015-08-07
      • 2023-03-31
      • 2013-03-05
      • 2014-01-11
      • 1970-01-01
      相关资源
      最近更新 更多