org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer.

博客内容描述了在Windows Server 2019环境中,使用Selenium尝试创建IE浏览器会话时遇到的SessionNotCreatedException异常。问题根源在于不同区域的安全设置中'启用保护模式'不一致。解决方案是统一所有区域的'启用保护模式'设置,并将安全级别设为最低。此外,还需关闭服务器管理器中的IE增强安全配置。

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增强关闭

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

让程序飞

您的鼓励将是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值