2017-09-23 176 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