当前位置:网站首页>自动化测试
自动化测试
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()
边栏推荐
- Unity存档系统——Json格式的文件
- leecode学习笔记-机器人走到终点的最短路径
- 对进程内存的实践和思考
- MCN机构遍地开花:博主和作者要谨慎签约、行业水很深
- After reciting the eight part essay, I won the hemp in June
- Talking about the advantages of flying book in development work | community essay solicitation
- qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”
- 入坑机器学习:一,绪论
- Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
- Uncaught Error: [About] is not a <Route> component. All component children of <Routes> must be a <Ro
猜你喜欢

消息称一加将很快更新TWS耳塞、智能手表和手环产品线

Use of hashcat

Is it out of reach to enter Ali as a tester? Here may be the answer you want

It's 2022, and you still don't know what performance testing is?

Random list random generation of non repeating numbers

3 years of testing experience. I don't even understand what I really need on my resume. I need 20K to open my mouth?

When they are in private, they have a sense of propriety
![Planification du réseau | [quatre couches de réseau] points de connaissance et exemples](/img/c3/d7f382409e99eeee4dcf4f50f1a259.png)
Planification du réseau | [quatre couches de réseau] points de connaissance et exemples

Can automate - 10k, can automate - 20K, do you understand automated testing?

Detailed explanation of cache (for the postgraduate entrance examination of XD)
随机推荐
The role of software security testing, how to find a software security testing company to issue a report?
Getting started with unityshader - Surface Shader
UnityShader入门精要——PBS基于物理的渲染
【FPGA】串口以命令控制温度采集
李宏毅《机器学习》丨6. Convolutional Neural Network(卷积神经网络)
保险APP适老化服务评测分析2022第06期
I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
internship:svn的使用
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source
【Proteus仿真】Arduino UNO+数码管显示4x4键盘矩阵按键
电脑端微信用户图片DAT格式解码为图片(TK版)
进入阿里做测试员遥不可及?这里或许有你想要的答案
Unity存档系统——Json格式的文件
How to uninstall CUDA
Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (1) -- migrate data to node 1
The Oracle 11g RAC cluster database cannot be started due to directory permission errors
jwt
The ecosystem of the yuan universe
[I.MX6UL] U-Boot移植(六) 网络驱动修改 LAN8720A
QT package the EXE file to solve the problem that "the program input point \u zdapvj cannot be located in the dynamic link library qt5cored.dll"