我在启动量角器代码时遇到问题。量角器:意外的错误启动Internet Explorer。所有区域的保护模式设置不同
下面是我使用的代码:
conf.js与下面的代码
// An example configuration file.
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': 'chrome'
'browserName': 'internet explorer'
},
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['example_spec.js'],
// Options to be passed to Jasmine-node.
allScriptsTimeout: 500000,
jasmineNodeOpts: {
onComplete: null,
isVerbose: true,
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 1000000
}
};
sample_class.js文件与下面的代码:
describe('angularjs homepage title check', function() {
it('should have a title', function() {
console.log('Step 1');
browser.get('http://google.com');
expect(browser.getTitle()).toEqual('My Todolist Page');
});
而且有我用来启动的命令
- 安装量角器--ie
- webdriver的经理节点JS
- webdriver的经理更新开始
请不要建议我改变IE浏览器的设置,因为它被禁用。让我知道,如果像新的一样
InternetExplorerOptions() { IntroduceInstabilityByIgnoringProtectedModeSettings = true} in selenium.
感谢
嗨Manoj欢迎来到Stackoverflow。这段代码有什么问题或问题? – Janusz
正如我在标题中提到的,我无法通过量角器启动IE浏览器。我在控制台 – Manoj