当前位置:网站首页>win32
win32
2022-06-26 02:13:00 【InfoQ】
What is? IE Pattern

1. IE The following modes are supported Internet Explorer function
- All document patterns and enterprise patterns .
- ActiveX Control ( for example Java or Silverlight). Be careful:Silverlight Will be in 2021 year 10 month 12 End of support .
- Browser Helper Object
- Internet Explorer Group settings and group policies that affect security zone settings and protected mode
- Apply to IE Of F12 Developer Tools , along with IEChooser Start together
- Microsoft Edge Expand ( Direct and IE Extension of page content interaction .
2. IE Mode does not support the following Internet Explorer function
- Internet Explorer The toolbar
- Control the navigation menu Internet Explorer Settings and group policies for .
- IE11 or Microsoft Edge F12 Developer Tools
3. How to set up

Python How to achieve IE Pattern
1. download IEDriver

2. install selenium library
pip install selenium3. Sample code
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 volute -Tango' + Keys.RETURN)
driver.quit()
边栏推荐
猜你喜欢

论文阅读 Exploring Temporal Information for Dynamic Network Embedding

SQL column value to row value (unpivot)

vscode调试时提示更新到最新调试版本

接口测试用例设计

Scala 基础 (二):变量和数据类型

Disruptor (I) sequence

表达式的动态解析和计算,Flee用起来真香

樹莓派 + AWS IoT Greengrass

One minute to understand the difference between synchronous, asynchronous, blocking and non blocking

Shell learning record (I)
随机推荐
shell学习记录(四)
Analytic hierarchy process
Ndk20b ffmpeg4.2.2 compilation and integration
图的广度优先遍历
@Query 疑难杂症
Other codes,, VT,,, K
樹莓派 + AWS IoT Greengrass
The first intimate contact of caching technology
Spiral matrix
Largeur d'abord traversée basée sur la matrice de contiguïté
Cross server SQL connection configuration
Abnova actn4 DNA probe solution
Redis-SDS
Sqlyog shortcut keys
Dazhou suggested that we media bloggers do these four things in the early stage
基於鄰接矩陣的廣度優先遍曆
Raspberry pie + AWS IOT introductory experiment
.NET7之MiniAPI(特别篇) :Preview5优化了JWT验证(下)
Interface test case design
shell学习记录(二)