Python+Selenium实现自动化的环境搭建的步骤(图文)
作者:AnitaDusy 时间:2022-02-23 23:59:33
1.在浏览器下载与浏览器相对于的驱动并放到python的安装根目录下
驱动的两个下载地址:
http://chromedriver.storage.googleapis.com/index.html
http://npm.taobao.org/mirrors/chromedriver/
a.先找到浏览器的版本
b.找到与浏览器对应的驱动
c.把下载好的驱动放到python安装目录的根目录下
2.点击设置
3.添加selenium
4.搜索selenium并添加
5.输入以下代码并运行,如果能打开浏览器则安装成功(我的是谷歌),如下图
6.已成功打开浏览器(谷歌),配置成功
来源:https://blog.csdn.net/Ksenia_py/article/details/107593178
标签:Python,Selenium,自动化,搭建
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
selenium 多窗口切换的实现(windows)
2021-08-17 03:58:54
Python脚本操作Excel实现批量替换功能
2023-06-15 16:37:57
![](https://img.aspxhome.com/file/2023/3/75933_0s.jpg)
asp正则表达式在网页处理中的应用四则
2008-02-24 14:44:00
python mac下安装虚拟环境的图文教程
2021-11-02 23:35:21
![](https://img.aspxhome.com/file/2023/2/82942_0s.jpg)
IE6浮出层穿透解决方案中的iframe高度自适应
2009-10-30 18:08:00
python 处理dataframe中的时间字段方法
2021-04-27 05:21:33
Python 读取位于包中的数据文件
2023-06-09 00:16:03
CentOS7中使用shell脚本安装python3.8环境(推荐)
2022-08-24 17:04:24
代码总结Python2 和 Python3 字符串的区别
2023-05-25 00:58:52
Python 实现把列表中的偶数变成他的平方
2023-12-13 02:45:18
![](https://img.aspxhome.com/file/2023/4/97544_0s.jpg)
Python Matplotlib绘制扇形图标签重叠问题解决过程
2022-06-27 05:22:48
![](https://img.aspxhome.com/file/2023/5/103625_0s.png)
opencv python在视屏上截图功能的实现
2021-04-14 04:00:30
![](https://img.aspxhome.com/file/2023/5/63575_0s.jpg)
Python改变对象的字符串显示的方法
2022-11-10 17:16:12
对python创建及引用动态变量名的示例讲解
2023-02-03 07:10:49
部署Python的框架下的web app的详细教程
2022-06-03 08:20:57
![](https://img.aspxhome.com/file/2023/2/114502_0s.png)
Python中的高级函数map/reduce使用实例
2021-11-07 06:57:23
![](https://img.aspxhome.com/file/2023/2/100812_0s.png)
扫盲大讲堂:SQL查询结果集对注入的影响及利用
2009-09-05 09:49:00
从p开始,循序渐进学习WEB标准
2008-03-08 18:53:00
Laravel框架路由管理简单示例
2023-11-14 13:37:26
Python爬虫与反爬虫大战
2023-06-05 04:11:54
![](https://img.aspxhome.com/file/2023/5/109535_0s.jpg)