当前位置:网站首页>自动化测试
自动化测试
2022-06-24 23:18: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()
边栏推荐
- Please run IDA with elevated permissons for local debugging.
- Unity archive system - file in JSON format
- Is it out of reach to enter Ali as a tester? Here may be the answer you want
- Intranet learning notes (7)
- 3年测试经验,连简历上真正需要什么都没搞明白,张口就要20k?
- 数据库系统概论必背知识
- PE文件基础结构梳理
- Modifying universal render data at runtime
- MySQL command backup
- vim的Dirvish中文文档
猜你喜欢

UnityShader入门精要——PBS基于物理的渲染

What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?

Random list random generation of non repeating numbers

leecode学习笔记-机器人走到终点的最短路径

数据库系统概论必背知识

Use of hashcat

计网 | 【四 网络层】知识点及例题

Sumati gamefi ecological overview, element design in the magical world

Folding screen will become an important weapon for domestic mobile phones to share the apple market

Exploring the mystery of C language program -- C language program compilation and preprocessing
随机推荐
ARM汇编中的栈桢小结
Detailed explanation of cache (for the postgraduate entrance examination of XD)
centos7.3修改mysql默认密码_详解Centos7 修改mysql指定用户的密码
Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (4) -- modify the scanip of Oracle11g RAC cluster
Investigation on key threats of cloud computing applications in 2022
计网 | 【四 网络层】知识点及例题
【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
ERROR日志格式与注意点
How to quickly familiarize yourself with the code when you join a new company?
商城项目 pc----商品详情页
How to uninstall CUDA
PSQL column to row
What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?
When they are in private, they have a sense of propriety
The Oracle 11g RAC cluster database cannot be started due to directory permission errors
The ecosystem of the yuan universe
How to monitor the log through the easycvr interface to observe the platform streaming?
|遇到bug怎么分析,专业总结分析来了
Yarn: unable to load file c:\users\xxx\appdata\roaming\npm\yarn PS1 because running scripts is prohibited on this system
MySQL command backup