当前位置:网站首页>Selenium电脑上怎么下载-Selenium下载和安装图文教程[超详细]
Selenium电脑上怎么下载-Selenium下载和安装图文教程[超详细]
2022-06-26 22:31:00 【long_songs】
Selenium是一个用于Web应用程序测试的工具。Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。支持的浏览器包括IE(7, 8, 9, 10, 11),Mozilla Firefox,Safari,Google Chrome,Opera,Edge等。这个工具的主要功能包括:测试与浏览器的兼容性——测试应用程序看是否能够很好得工作在不同浏览器和操作系统之上。测试系统功能——创建回归测试检验软件功能和用户需求。支持自动录制动作和自动生成.Net、Java、Perl等不同语言的测试脚本。
Selenium安装教程
选择 Selenium 很大原因是因为能在python和浏览器上
随便打开一个python项目,
1.安装Selenium库
IDLE的话,就直接在命令行
pip install selenium
我这里用的是pycharm
也是一样的,随便打开一个项目

下载完成,看到success,下一步

不放心的话可以检查一下版本之类的
pip show selenium

2.下载一个驱动器
根据你的浏览器进行选择
这里是官网,但是可能需要梯子
关于版本的选择,打开浏览器右上角,关于...或者是设置里面

这里帮你们下载了 谷歌最新版本的
谷歌:(517条消息) 谷歌浏览器驱动谷歌浏览器驱动-Webpack文档类资源-CSDN文库
https://download.csdn.net/download/long_songs/85748871

pythonProject2\venv\Lib\site-packages下载完放到这python根目录:具体方法 右击idle打开文件所在位置,然后把exe文件复制到里面

挑选自己下载的
from selenium import webdriver
driver = webdriver.Edge()
# driver = webdriver.Chrome()
# driver= webdriver.firefox()
driver.get('http://www.baidu.com/')
Microsoft Edge 正由自动测试软件控制!
边栏推荐
- Which securities company is the most convenient, safe and reliable for opening an account
- Flower shop window layout [dynamic planning]
- Pass note 【 dynamic planning 】
- DLA model (classification model + improved segmentation model) + deformable convolution
- Leetcode (452) - detonate the balloon with the minimum number of arrows
- Do an online GIF synthesis service at no cost
- FPGA -VGA显示
- 尚硅谷DolphinScheduler视频教程发布
- [fundamentals of image processing] GUI image histogram equalization system based on MATLAB [including Matlab source code 1924]
- 简析攻防演练中蓝队的自查内容
猜你喜欢
![leetcode:152. Product maximum subarray [consider DP of two dimensions]](/img/c8/af6a4c969affd151a5214723dffb57.png)
leetcode:152. Product maximum subarray [consider DP of two dimensions]

AI intelligent matting tool - hair can be seen

数据清洗工具flashtext,效率直接提升了几十倍数
![leetcode:141. Circular linked list [hash table + speed pointer]](/img/19/f918f2cff9f831d4bbc411fe1b9776.png)
leetcode:141. Circular linked list [hash table + speed pointer]

leetcode:6103. 从树中删除边的最小分数【dfs + 联通分量 + 子图的值记录】

矩阵求导及其链式法则

Restfultoolkitx of idea utility plug-in -- restful interface debugging
![[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]](/img/e8/6342f2dc6e7f06a847852ce4b40719.jpg)
[fundamentals of image processing] GUI image curve adjustment system based on MATLAB [including Matlab source code 1923]

Unity: the referenced script (unknown) on this behavior is missing“

Product design in the extreme Internet Era
随机推荐
Share three methods of automatic summation in Excel
Vulnhub's dc9
Restfultoolkitx of idea utility plug-in -- restful interface debugging
Which platform is the safest for buying stocks and opening accounts? Ask for sharing
简析攻防演练中蓝队的自查内容
CVPR 2022 | 美团技术团队精选论文解读
How to write test cases and a brief introduction to go unit test tool testify
數據清洗工具flashtext,效率直接提昇了幾十倍數
Flutter 中 ValueNotifier<List<T>> 监听问题解决
L'outil de nettoyage des données flashtext améliore directement l'efficacité de plusieurs dizaines de fois
网络爬虫2:抓取网易云音乐评论用户ID及主页地址
Yolov6: un cadre de détection de cibles rapide et précis est Open Source
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
How SAP Spartacus default routing configuration works
Do an online GIF synthesis service at no cost
Three solutions for improving embedded software development environment
random_ normal_ Initializer uses
vulnhub之dc8
What are the test case design methods?
Introduction to dependency injection in SAP Spartacus