当前位置:网站首页>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 正由自动测试软件控制!
边栏推荐
- Partage de trois méthodes de sommation automatique dans un tableau Excel
- The network connection is disconnected. Please refresh and try again
- 简述unity的模型动画功能
- Unity: the referenced script (unknown) on this behavior is missing“
- [mixed programming JNI] Part 6: operation of strings and arrays in native
- [mixed programming JNI] Part 7: JNI command lines
- DLA model (classification model + improved segmentation model) + deformable convolution
- Unity method for setting material and shader
- LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)
- Unity3d plug-in anyportrait 2D bone animation
猜你喜欢

Web crawler 2: crawl the user ID and home page address of Netease cloud music reviews

Matrix derivation and its chain rule

【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】

The sharp sword of API management -- eolink
![[machine learning] - Introduction to vernacular and explanation of terms](/img/4c/e18fe52a71444c2ca08167ead9f28f.jpg)
[machine learning] - Introduction to vernacular and explanation of terms

Implementation of collaborative filtering evolution version neuralcf and tensorflow2

论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》

Raspberry pie preliminary use

vulnhub之DC9
![leetcode:710. Random numbers in the blacklist [mapping thinking]](/img/ec/a3faeae6636bc3d0d9536962fdd9af.png)
leetcode:710. Random numbers in the blacklist [mapping thinking]
随机推荐
Unity: 脚本缺失 “The referenced script (Unknown) on this Behaviour is missing!“
random_normal_initializer 使用
[cloud native topic -51]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware redis microservice deployment process
简述unity的模型动画功能
Implementation of collaborative filtering evolution version neuralcf and tensorflow2
Detailed explanation of nmap parameters
Centos7编译安装Redis
大龄程序员的一些出路
模块五作业
Module 5 operation
【混合编程jni 】第十二篇 jnaerator
Partage de trois méthodes de sommation automatique dans un tableau Excel
Is it safe for CICC fortune to open an account? I want to open an account to speculate in stocks.
Word chess based on heuristic search
leetcode:141. 环形链表【哈希表 + 快慢指针】
【图像处理基础】基于matlab GUI图像曲线调整系统【含Matlab源码 1923期】
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
Unity布料系統_Cloth組件(包含動態調用相關)
Homebrew installation in MacOS environment [email protected]
Test comparison of linear model LN, single neural network SNN, deep neural network DNN and CNN