IE中的量角器测试

daz*_*iep 3 testing selenium internet-explorer webdriver protractor

我正在尝试运行在Internet Explorer上的量角器中包含的示例测试而不是很远:(

// An example configuration file.
exports.config = {
  directConnect: true,

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

  // Framework to use. Jasmine is recommended.
  framework: 'jasmine',

  // Spec patterns are relative to the current working directory when
  // protractor is called.
  specs: ['example_spec.js'],

  // Options to be passed to Jasmine.
  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  }
};
Run Code Online (Sandbox Code Playgroud)

我已经尝试了明显改变的浏览器名称为'Internet explorer'和'version':11并且我已经注释掉了directConnect(因为它抱怨这个)

我得到的错误是......

WebDriverError:驱动程序可执行文件的路径必须由webdriver.ie.driver系统属性设置; 有关更多信息,请参阅https://github.com/SeleniumH Q/selenium/wiki/InternetExplorerDriver.最新版本可以从http://selenium-release.storage.googleapis.com/index.html下载

我已经下载了最新的IE驱动程序并将其放在这里......

C:\ Users \用户darrenp \应用程序数据\漫游\ NPM \node_modules \量角器\硒

仍然没有快乐:(

有人可以告诉我,如果实际上可以在IE中运行量角器测试,或者我只是在浪费时间吗?

我知道你会问我为什么要这么做?简单的答案,我必须,我的客户端使用IE浏览器,只有IE,我需要确保我的应用程序是好的IE而不是像世界其他地方正在使用的铬:)

Sid*_*Sid 8

1)下载IEDriverServer.exe 2)将其放在C:\ Windows\System32中

exports.config = {
  'autoStartStopServer': true,

  capabilities: {
    'browserName': 'internet explorer'
  },
  framework: 'jasmine',
  specs: ['example_spec.js'],
  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  }
};
Run Code Online (Sandbox Code Playgroud)

3)打开Internet Explorer单击选项

4)在"安全"选项卡>"禁用所有区域的保护模式"

5)导航到隐私选项卡TurnOff PopUp Blocker

6)导航到"高级"选项卡

在此输入图像描述

在此输入图像描述

在此输入图像描述

在此输入图像描述

在此输入图像描述

  • 应该归功于您引用的帖子的作者:http://elgalu.github.io/2014/run-protractor-against-internet-explorer-vm/ (6认同)