当前位置:网站首页>automated testing
automated testing
2022-06-25 02:46: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()
边栏推荐
- 【STL源码剖析】STL六大组件功能与运用(目录)
- ida中交叉引用的解析
- Migrate Oracle database from windows system to Linux Oracle RAC cluster environment (3) -- set the database to archive mode
- psql 列转行
- 对进程内存的实践和思考
- LINQ query (3)
- Distributed transaction solutions and code implementation
- 给你讲懂 MVCC 续篇
- GO同步等待组
- 14 bs对象.节点名称.name attrs string 获取节点名称 属性 内容
猜你喜欢

Redis

折叠屏将成国产手机分食苹果市场的重要武器

AOSP ~ WIFI架构总览

转行软件测试2年了,给还在犹豫的女生一点建议

qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”

Transformers Roberta如何添加tokens

Processon producer process (customized)

1-6搭建Win7虚拟机环境

Talking about the advantages of flying book in development work | community essay solicitation

Insurance can also be bought together? Four risks that individuals can pool enough people to buy Medical Insurance in groups
随机推荐
Lizuofan, co-founder of nonconvex: Taking quantification as his lifelong career
qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”
目录权限错误导致 Oracle 11g rac 集群数据库无法启动的问题
Folding screen will become an important weapon for domestic mobile phones to share the apple market
Please run IDA with elevated permissons for local debugging.
把 Oracle 数据库从 Windows 系统迁移到 Linux Oracle Rac 集群环境(1)——迁移数据到节点1
Can the polardb database be connected to the data source through MySQL
Planification du réseau | [quatre couches de réseau] points de connaissance et exemples
[day 26] given the ascending array nums of n elements, find a function to find the subscript of target in nums | learn binary search
[I.MX6UL] U-Boot移植(六) 网络驱动修改 LAN8720A
Transformers Roberta如何添加tokens
doak-cms 文章管理系统 推荐
Groovy之高级用法
UnityShader入门精要——PBS基于物理的渲染
Talking about the advantages of flying book in development work | community essay solicitation
Intranet learning notes (7)
转行软件测试2年了,给还在犹豫的女生一点建议
Random list random generation of non repeating numbers
计网 | 【四 网络层】知识点及例题
同花顺是正规平台吗?同花顺开户安全吗