2017-09-23 180 views
0

運行量角器我嘗試在IE11上運行量角器,我不斷收到此failuer:無法在Internet Explorer

E/launcher - Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.

我沒有在資源管理器中設置的所有區域,但仍然得到這個錯誤。

我conf.js文件是:

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: 'internet explorer' 
    }, 

    // Spec patterns are relative to the configuration file location passed 
    // to protractor (in this example conf.js). 
    // They may include glob patterns. 
    specs: ['todo-spec.js'], 

    // Options to be passed to Jasmine-node. 
    jasmineNodeOpts: { 
    showColors: true, // Use colors in the command line report. 
    } 
}; 

請幫助。 振盪

回答

0

進入工具 - > Internet選項 - >安全選項卡,並設置爲相同的保護模式所有區域(可啓用或禁用)。

0

嘗試包括以下功能:

capabilities: { 
    ... 
    "ignoreProtectedModeSettings": true 
} 
+0

沒有工作。我得到了新的錯誤: [17:39:56] E/configParser - 錯誤代碼:105 [17:39:56] E/configParser - 錯誤消息:加載配置文件conf.js失敗 [17:39:56 ] E/configParser - C:\ Users \ moran \ Protractor \ conf.js:9 'ignoreProtectedModeSettings':true, ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ –

+1

這是因爲你的config.js格式不正確。缺了點什麼。這些功能不會引發錯誤。 – cnishina