selenium 创建IE 会话异常
org.openqa.selenium.SessionNotCreatedException: 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.
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'System info: host: 'iZii3rznetsmkeZ',
ip: '10.200.0.176', os.name: 'Windows Server 2019', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_271'Driver info: d
river.version: unknownremote stacktrace: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
解决办法
internet 选项,进入安全标签,分别点击internet ,本地intranet,受信任的站点,受限制的站点,四个设置,全部去掉勾选“启用保护模式” 安全级别调成最低
服务器管理器-本地服务器-IE增强关闭
博客内容描述了在Windows Server 2019环境中,使用Selenium尝试创建IE浏览器会话时遇到的SessionNotCreatedException异常。问题根源在于不同区域的安全设置中'启用保护模式'不一致。解决方案是统一所有区域的'启用保护模式'设置,并将安全级别设为最低。此外,还需关闭服务器管理器中的IE增强安全配置。
8653

被折叠的 条评论
为什么被折叠?



