我正在尝试在 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 [email protected]
// 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
有任何想法吗?