当前位置:网站首页>Selenium Edge的IE模式
Selenium Edge的IE模式
2022-06-23 13:56: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()
边栏推荐
- How to use note taking software flowus and note for interval repetition? Based on formula template
- Assembly language interrupt and external device operation --06
- 【深入理解TcaplusDB技术】Tmonitor后台一键安装
- 去 OPPO 面试, 被问麻了。。。
- Kali use
- Low grain prices hurt farmers, low wages hurt farmers!
- 【深入理解TcaplusDB技术】TcaplusDB构造数据
- Error when Oracle enters sqlplus
- The company has only one test, but the leader asked me to operate 1000 mobile numbers at the same time
- Illustration of ONEFLOW's learning rate adjustment strategy
猜你喜欢
![[deeply understand tcapulusdb technology] table management of document acceptance](/img/59/e435623ab9cc7d2aa164c2f08e135f.png)
[deeply understand tcapulusdb technology] table management of document acceptance

Assembly language interrupt and external device operation --06

如何使用笔记软件 FlowUs、Notion 进行间隔重复?基于公式模版
![[in depth understanding of tcapulusdb technology] tcapulusdb construction data](/img/0c/33d9387cd7733a0c6706a73f9535f7.png)
[in depth understanding of tcapulusdb technology] tcapulusdb construction data

Linear regression analysis of parent-child height data set

Edge and IOT academic resources

微信小程序之从底部弹出可选菜单

Technology creates value and teaches you how to collect wool

How to use note taking software flowus and note for interval repetition? Based on formula template

Building Intel devcloud
随机推荐
大厂架构师:如何画一张大气的业务大图?
【无标题】
JSP_ SSM Wanfu cinema ticket sales management system, including paper [demonstration video]
如何使用笔记软件 FlowUs、Notion 进行间隔重复?基于公式模版
知名人脸搜索引擎惹众怒:仅需一张照片,几秒钟把你扒得底裤不剩
WPF (c) open source control library: newbeecoder Nbexpander control of UI
系统设计与分析-技术报告-定时清理验证码的一种解决方案
Multi-Camera Detection of Social Distancing Reference Implementation
【深入理解TcaplusDB技术】 Tmonitor模块架构
When pandas met SQL, a powerful tool library was born
Execute the sc.exe QC command to query some services. The data area passed to the system call is too small
[deeply understand tcapulusdb technology] table management of document acceptance
Add Icon before input of wechat applet
Web technology sharing | [Gaode map] to realize customized track playback
连续2年夺冠!Zabbix在2022年多款监控软件排名第一
Building Intel devcloud
Shutter clip clipping component
NFNet:NF-ResNet的延伸,不用BN的4096超大batch size训练 | 21年论文
Sqlserver2008r2 failed to install DTS component
微信小程序之在wx:for中绑定事件