我在啓動量角器代碼時遇到問題。量角器:意外的錯誤啓動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