当前位置:网站首页>win32
win32
2022-06-26 00:33:00 【InfoQ】
什么是IE模式

1. IE 模式支持以下 Internet Explorer 功能
- 所有文档模式和企业模式。
- ActiveX 控件(例如 Java 或 Silverlight)。 注意:Silverlight 将于 2021 年 10 月 12 日终止支持。
- 浏览器帮助程序对象
- Internet Explorer影响安全区域设置和受保护模式的组设置和组策略
- 适用于 IE 的 F12 开发人员工具,随 IEChooser 一起启动
- Microsoft Edge 扩展(不支持直接与 IE 页面内容交互的扩展。
2. IE 模式不支持以下 Internet Explorer 功能
- Internet Explorer 工具栏
- 控制导航菜单的 Internet Explorer 的设置和组策略。
- IE11 或 Microsoft Edge F12 开发人员工具
3. 如何设置

Python如何实现IE模式
1. 下载IEDriver

2. 安装selenium库
pip install selenium
3. 示例代码
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
ie_options = webdriver.IeOptions()
ie_options.attach_to_edge_chrome = True
ie_options.edge_executable_path = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
driver = webdriver.Ie(executable_path=r"D:\IEDriverServer.exe", options=ie_options)
driver.get("http://www.bing.com")
elem = driver.find_element(By.ID, 'sb_form_q')
elem.send_keys('IT蜗壳-Tango' + Keys.RETURN)
driver.quit()

边栏推荐
- 影响个人成长的三个因素
- shell curl 执行脚本,带传参数,自定义参数
- Wanglaoji pharmaceutical's public welfare activity of "caring for the most lovely people under the scorching sun" was launched in Hangzhou
- Shell learning record (IV)
- 通俗易懂C語言關鍵字static
- shell学习记录(二)
- Three factors affecting personal growth
- cv==biaoding---open----cv001
- Redis-链表
- vtk初始化代码学习1
猜你喜欢
Tarte aux framboises + AWS IOT Greengrass
Disruptor (I) sequence
vs2015+PCL1.8.1+qt5.12-----(1)
安装了Visual Studio 2013 Redistributable,mysql还是安装失败
SDRAM控制器——添加读写FIFO
The answer skills and examples of practical cases of the second construction company are full of essence
关于strlen与sizeof的区别
Exploring temporary information for dynamic network embedding
CyCa children's physical etiquette Yueqing City training results assessment successfully concluded
一分钟了解同步、异步、阻塞和非阻塞的区别
随机推荐
通俗易懂C語言關鍵字static
Tcp网络通信中各个状态的含义
On the difference between strlen and sizeof
Sweet cool girl jinshuyi was invited to be the spokesperson for the global finals of the sixth season perfect children's model
Weishi camera display
SDRAM控制器——添加读写FIFO
連接投影儀
Three factors affecting personal growth
vtk初始化代码学习1
Application and chemical properties of elastase
Connecting the projector
Chemical properties and application of trypsin
LeetCode 41 ~ 50
socket demo01
buffer
The answer skills and examples of practical cases of the second construction company are full of essence
将weishi相机图片进行转换
NDK20b FFmpeg4.2.2 编译和集成
一分钟了解同步、异步、阻塞和非阻塞的区别
螺旋矩阵