当前位置:网站首页>selenium驱动IE常见问题解决Message: Currently focused window has been closed.
selenium驱动IE常见问题解决Message: Currently focused window has been closed.
2022-07-04 06:33:00 【51CTO】
1、保护模式不一致(全部打开保护模式)
Caused by: 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.

2、窗口已关闭
Message: Currently focused window has been closed.
解决方法:
第一步:
打开IE,工具->Internet选项->高级->重置,弹出窗口,选项“删除个人设置”打上勾,确定重置,回到原始默认状态;
第二步:
禁用smartscreen,打开IE,工具->Internet选项->安全->选择Internet->自定义级别,找到使用 SmartScreen 筛选器,选择禁用,然后确定;
第三步:
打开IE,工具->Internet 选项,点击高级标签,在“加速的图形"下"使用软件呈现而不使用GPU呈现"前面打勾。
第四步:
重启浏览器,不需要重启电脑。
边栏推荐
- Tar source code analysis Part 3
- [backpack DP] backpack problem
- uniapp 自定义环境变量
- tars源码分析之8
- Common JS tool Libraries
- 1、 Relevant theories and tools of network security penetration testing
- Arcpy 利用updatelayer函数改变图层的符号系统
- What is a spotlight effect?
- Appium foundation - appium installation (II)
- Another company raised the price of SAIC Roewe new energy products from March 1
猜你喜欢

Which water in the environment needs water quality monitoring

JSON Web Token----JWT和传统session登录认证对比

分布式CAP理论

C language exercises (recursion)

Matlab remainder

Functions in C language (detailed explanation)

Bicolor case

Fundamentals of SQL database operation

Abap:ooalv realizes the function of adding, deleting, modifying and checking

Overview of convolutional neural network structure optimization
随机推荐
Detailed explanation of common APIs for component and container containers: frame, panel, scrollpane
ABCD four sequential execution methods, extended application
R统计绘图-随机森林分类分析及物种丰度差异检验组合图
Considerations for testing a website
Functions in C language (detailed explanation)
7. Agency mode
What is tweeman's law?
JSON Web Token----JWT和传统session登录认证对比
198. House raiding
8. Factory method
thread priority
Internet of things protocol ZigBee ZigBee module uses the concept of protocol stack
SQL injection SQL lab 11~22
Option (024) - do all objects have prototypes?
【MySQL】数据库视图的介绍、作用、创建、查看、删除和修改(附练习题)
tcp socket 的 recv 如何接收指定长度消息?
2022 wechat enterprise mailbox login entry introduction, how to open and register enterprise wechat enterprise mailbox?
Dimension and format of data
【问题记录】03 连接MySQL数据库提示:1040 Too many connections
leetcode 310. Minimum Height Trees