当前位置:网站首页>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 selenium3. 示例代码
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()
边栏推荐
- Weishi camera display
- Meaning of each state in TCP network communication
- Tengwenze, a hot-blooded boy, was invited to serve as the image ambassador of the global finals of the sixth season perfect children's model
- Redis的使用
- 如何高效的完成每日的任务?
- Multi type study of Worthington collagen protease
- 启牛推荐的证券账户安全吗?
- 静态库动态库的使用
- The role of xargs
- Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) D. Felicity‘s Big Secret Revealed
猜你喜欢

Interface test case design

jenkins汉化及汉化无效解决方案

通俗易懂C語言關鍵字static

recvmsg & sendmsg

接口测试用例设计

Shell learning record (II)

A lost note for konjaku beginner

How to add a "security lock" to the mobile office of government and enterprises?

Redis7.0 installation steps

One stop solution EMQ for hundreds of millions of communication of Internet of things
随机推荐
高手常用的电脑快捷键
Redis linked list
Graphics rendering pipeline
How to set achievable medium - and long-term goals?
-- EGFR FISH probe solution
记录一个诡异的图片上传问题
shell学习记录(二)
求n的乘阶
【js】免费api判断节假日、工作日和周六日
连接投影仪
How to use commands to write file names (including paths) in folders to txt files
Record a weird picture upload problem
memory leak check tools 详解
通俗易懂C語言關鍵字static
jenkins汉化及汉化无效解决方案
weishi相机显示
Redis-链表
recv & send
How to add a "security lock" to the mobile office of government and enterprises?
宁要一个完成,不要千万个开始(转载自豆瓣)