当前位置:网站首页>Disputes between chromedriver, geckodriver, microsoftwebdriver, iedriverserver and operadriver
Disputes between chromedriver, geckodriver, microsoftwebdriver, iedriverserver and operadriver
2022-06-21 13:45:00 【testleaf】
Test environment : The operating system is Windows10-64 position
Specific goals : Install five browsers and their drivers
Catalog
One 、 Google browser
1.Google Chrome Installation
It is recommended to download the latest... From the software management of Tencent computer manager 64 Bit version .
2.chromedriver The download
(1) Open Google browser , Click on the three points in the upper right corner , Choose help -》 About Google Chrome, Click in .
(2) You can see , My browser version is Google Chrome 80.0.3987.163 Of 64 Bit version 
(3) Download the driver from Taobao official website , Select the corresponding version .
https://npm.taobao.org/mirrors/chromedriver
80 Is the large version number ,0.3987.163 It's a small version number ;
The large version numbers of the driver and browser must be consistent , The minor version number of the driver must be greater than or equal to the minor version number of the browser .
(4) Next, download on demand , Decompression is obtained. chromedriver.exe File can .
(5) Deposit chromedriver
take chromedriver.exe Copied to the Python Can be installed under the directory .
And python.exe The storage location is the same .
Two 、 Firefox
1.Firefox Installation
It is recommended to download the latest... From the software management of Tencent computer manager 64 Bit version .
2.geckodriver The download
(1) from github Download the latest driver .
https://github.com/mozilla/geckodriver/releases
For the convenience of all friends to download ,geckodriver.exe The file has been put to Baidu online disk .
link : https://pan.baidu.com/s/16sis-AqtzXEI968jU647ig Extraction code : leaf
(2) Decompression is obtained. geckodriver.exe file .
(3) Deposit geckodriver
take geckodriver.exe Copied to the Python Can be installed under the directory .
And python.exe The storage location is the same .
3、 ... and 、Edge browser
1.Microsoft Edge Installation
Please download the latest on Microsoft's official website Edge Browser installation package file MicrosoftEdgeSetup.exe, Click on Download, Click accept and download .
https://www.microsoft.com/en-us/edge

in addition ,http://dl.delivery.mp.microsoft.com/filestreamingservice/files/812c141f-8680-4aaa-83d2-f99316588162/MicrosoftEdgeEnterpriseX64.msi
The link also provides Edge Browser installation package file MicrosoftEdgeEnterpriseX64.msi The download .
For your convenience to download ,MicrosoftEdgeSetup.exe Document and MicrosoftEdgeEnterpriseX64.msi The file has been put into our Baidu online disk , Choose one of them Download it .
link : https://pan.baidu.com/s/16sis-AqtzXEI968jU647ig Extraction code : leaf
Last , Just install it by default .
2.MicrosoftWebDriver The download
(1) Start by opening Edge browser , Click on the three points in the upper right corner , Select help and feedback -》 About Microsoft Edge, Click on it. .
(2) You can see , My browser version is Microsoft Edge 80.0.361.109 Of 64 Bit version .
(3) Download the corresponding version of the driver on the Microsoft official website .
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver
(4) Click on “full version directory”, Enter a directory , Find the folder of the corresponding version , Then go in .
(5) Download to the corresponding system driver file .
(6) Download to local and extract , take msedgedriver.exe file rename by MicrosoftWebDriver.exe that will do .
If you don't rename , stay RIDE The following errors may occur in :
INFO : Cannot capture screenshot because no browser is open.
FAIL : WebDriverException: Message: ‘MicrosoftWebDriver.exe’ executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687
The version MicrosoftWebDriver.exe Also put to Baidu network disk , Please download on demand .
link : https://pan.baidu.com/s/16sis-AqtzXEI968jU647ig Extraction code : leaf
(7) Deposit MicrosoftWebDriver
take MicrosoftWebDriver.exe Copied to the Python Can be installed under the directory .
And python.exe The storage location is the same .
Four 、IE browser
1.Internet Explorer Installation
because Windows10 Bring their own IE browser , So... Is not provided here IE How to download and install the browser .
2.IEDriverServer The download
(1) Start by opening IE browser 
(2) Click Settings -》Internet Options 
(3) Click on “ Security ”, take “Internet”、“ Local Intranet”、“ Trusted sites ”、“ Restricted sites ” Inside “ Enable protected mode ” Check all , Click ok , restart IE browser .
If you don't do this , So in RIDE The following errors may occur in :
INFO : Cannot capture screenshot because no browser is open.
FAIL : SessionNotCreatedException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.
(4) see selenium edition
stay cmd Execute command in window
pip show selenium
You can see , My current selenium Version is 3.141.0;
(5) download IEDriverServer
At present, it can be obtained from the following website IEDriverServer,
http://selenium-release.storage.googleapis.com/index.html
According to their own selenium edition , Select corresponding IEDriverServer Download , Find yourself selenium Version folder , Click in , Download on demand .

Download and unzip to get IEDriverServer.exe that will do .
(6) Deposit IEDriverServer
take IEDriverServer.exe Copied to the Python Can be installed under the directory .
And python.exe The storage location is the same .
3.IE Browser access xpath
(1) Tools used Fire-IEBrowser1.4.xlsm Has been put to our Baidu network disk link .
link : https://pan.baidu.com/s/16sis-AqtzXEI968jU647ig Extraction code : leaf
(2) With Excel Format open , Please enable macros , Click on Proceed.
(3) Input URL, Click on Load, If the bullet box , Click on “ yes ”.
(4) Want to click on the elements , Right click , Then enter any character , Click on “ determine ”.
(5) Close the macro window , We get what we want in the table xpath.
Refer to this article of the boss :
https://www.cnblogs.com/linbo3168/p/6553436.html
5、 ... and 、Opera browser
1.Opera Installation
(1) because Opera Slow download on official website , So it also provides the Baidu network disk link below .
link : https://pan.baidu.com/s/16sis-AqtzXEI968jU647ig Extraction code : leaf
(2) obtain OperaSetup.exe This document will do .
(3) Interested partners can also be in Opera Download on the official website .
https://www.opera.com/zh-cn
(4) double-click OperaSetup.exe This file performs Opera Browser installation .
(5) Click on “ Options ”
(6) Pay attention to every detail , Click on the install , Just wait for the installation to complete .
matters needing attention :
① The default language is “ chinese ( China )”
② The default installation method is “ All users on this computer ”
③ The default installation path is C disc Next , Default is not C Please install the disk in C Under this path :C:\Program Files\Opera
④ Remove your installation path before installation .
Can't delete , Please open the task manager to Opera Installer End of process .
If you don't follow the above steps , stay RIDE The following errors may occur when using :
( Please reinstall in this way after an error occurs )
INFO : Cannot capture screenshot because no browser is open.
FAIL : WebDriverException: Message: unknown error: cannot find Opera binary
2.operadriver The download
(1) First of all to see Opera Version of
open Opera browser , Click the red circle in the upper left corner .
help -》 About Opera(A)

You can see , My current browser version is Opera Stable 67;
(2) download operadriver
At present, it can be downloaded from github Get to operadriver,
https://github.com/operasoftware/operachromiumdriver/releases
According to their own Opera edition , Select corresponding operadriver Download , Download and unzip to get operadriver.exe that will do .
Of course , The previous Baidu network disk link also provides the corresponding version of this article operadriver.exe, Please download on demand .
link : https://pan.baidu.com/s/16sis-AqtzXEI968jU647ig Extraction code : leaf
(3) Deposit operadriver
take operadriver.exe Copied to the Python Can be installed under the directory .
And python.exe The storage location is the same .
3. change Opera The developer tool shortcut for is F12
Opera The default developer tool shortcut key for is Ctrl+Shift+I, Now let's make changes .
(1) Set up -》 senior -》 browser , Slide down , Find the shortcut key , Shortcut key -》 Configure shortcut keys , Then click on the triangle .
(2) Slide down , find “ Developer tools ”, take Ctrl+Shift+I Delete , Click on Type a shortcut, Press down F12 that will do .
6、 ... and 、 summary
| browser | Recommend index |
|---|---|
| Google Chrome | 9/10 |
| Firefox | 6/10 |
| Microsoft Edge | 8/10 |
| Internet Explorer | 5/10 |
| Opera | 7/10 |
Google Chrome is as easy to use as ever , The performance is the best .
7、 ... and 、 Colored eggs - lookup Python Installation directory
This article USES Windows10-64 Bit system , If the system is different, please Baidu by yourself .
1. The start menu , Find the letter P The first application , find Python Applications for .
2. Right click Python Applications , Choose more -》 Open file location 
3. Now it's time to enter Python Directory of shortcuts to applications , Right click the shortcut , Click on “ Where to open the file ”
4. Now it's time Python Installation directory of .
disclaimer :
1. The purpose of writing this article is to learn better Selenium Use , If the interests of the people concerned are harmed , Please contact to delete ;
2. If the description is not right , Please correct in the comments ;
3. Writing is not easy , If it feels useful , Like collection will make bloggers happy ;
4. Besides , This article supports any form of reprint , Reprint please indicate the source , Thank you very much !!!
This article comes from :https://blog.csdn.net/testleaf/article/details/105302367
Blog Garden cnblogs Same number .
边栏推荐
- Talk about the delay of public network
- [in depth understanding of tcapulusdb technology] tcapulusdb business data backup
- Alibaba cloud link tracking is on the Net project (Jaeger trace)
- ###数据库的高可用配置(mysql)
- 技术分享 | MySQL中一个聚类增量统计 SQL 的需求
- 流量加密之C2隐藏
- Explanation of common mesh generation methods in workbench
- Leetcode height checker
- seaborn绘图风格的设置
- 8. structure
猜你喜欢

服务治理的工作内容

Set up ZABBIX monitoring and email alarm

How to write test cases

Alibaba cloud log service is available in Net project

如何阅读AI顶会论文?
![[in depth understanding of tcapulusdb technology] tcapulusdb construction data](/img/83/200cd9705138583eee6b3db55135ff.png)
[in depth understanding of tcapulusdb technology] tcapulusdb construction data

Use map set or list set to store list set

Cvpr2022 | the action sequence verification task was first proposed by X xiaohongshu of Shanghai University of science and technology, which can be applied to multiple scenarios such as scoring of spo

Please, don't use pessimistic locks in high concurrency scenarios!

The new plan for national treasures - the exclusive digital collection of the four museums is coming!
随机推荐
MySQL - adding, deleting, querying and modifying tables
3. function improvement
C language elementary level (IX) enumeration
IMU selection, calibration error analysis, AHRS integrated navigation
Atguigu---- conditional rendering
Write efficient defect reports
Farewell to the endless summer
Prepare for the golden three silver four, are you ready? Summary of software test interview questions
Azure applicationinsights integrated in blazor
JS 中的集合引用类型
哪个期货平台 交易更安全放心。求推荐。
Apache shardingsphere 5.1.2 release | new driving API + cloud native deployment to create a high-performance data gateway
Using slurm cluster computing node debugger in vscode
Unbounded territory won the title of innovative brand of digital culture industry in 2022
SCCM基于已安装的 APP创建客户端集合并定期推送应用更新
curl常用参数详解及示例
Use map set or list set to store list set
6. functions
Redis学习(3)—— 持久化机制
Hands on data analysis unit 2 section 4 data visualization