【发布时间】:2015-03-09 11:33:17
【问题描述】:
我正在尝试在 IE11 上运行我的 jasmine E2E 测试,但没有任何运气。 我在 Windows 8.1 上。 我的配置:
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// run in multiple browsers
multiCapabilities:[
// {
// 'browserName': 'chrome'
// },
// {
// 'browserName': 'firefox'
// },
{
'browserName': 'internet explorer',
}
],
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['./**/*js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
onPrepare: function () {
// The require statement must be down here, since jasmine-reporters@1.0
// needs jasmine to be in the global and protractor does not guarantee
// this until inside the onPrepare function.
require('jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter('xmloutput', true, true)
);
}
};
Chrome 和 Firefox 的工作就像一个魅力,但 IE 给了我这个:
Error: browserName (internet explorer) is not supported with directConnect.
IEDriverServer.exe 已添加到我的路径中。我已经完成了所有需要的配置:https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Required_Configuration
有什么想法吗?
【问题讨论】:
标签: angularjs node.js testing protractor internet-explorer-11