当前位置:网站首页>找不到和chrome浏览器版本不同的chromedriver的解决方法
找不到和chrome浏览器版本不同的chromedriver的解决方法
2022-08-09 06:49:00 【qq_48745252】
某一天我很久没有chromedriver之后,发现我的google版本是下图这样
打开这个网站下载新版本的chromedriver,我发现没有103.0.5060.114。虽然我不知道为什么没有但是问题总是要解决啊!
chromedriver下载地址:http://chromedriver.storage.googleapis.com/index.html
于是我下载了103.0.5060.134版本的chrome driver。(感觉这个版本是最新的吧)
把下载的chromedirver压缩包放在这个地址(自己去查看自己的安装地址,右键点击google浏览器---属性)
解压之后,会有一个chromedriver.exe文件。把这个文件也复制到你python的安装路径里面去(查询python安装路径方法是打开cmd(win+R),输入“where python”)。
然后设置环境变量,右键我的电脑--属性--高级系统设置--环境变量--新建---输入
打开pycharm,输入以下代码,chromedriver应该就可以用了。如果有用,家人们,点赞评论下可以吗?帮助更多的人。
from selenium import webdriver
driver = webdriver.Chrome()
url = 'https://www.csdn.net/'
driver.get(url)
driver.maximize_window()
边栏推荐
- Zero shift of leetcode
- 【Shell】查找进程的pid并根据pid获取该进程所占用的端口号以及该进程在系统中所下达的指令名称
- ByteDance Interview Questions: Mirror Binary Tree 2020
- C语言实现顺序栈和链队列
- db.sqlite3没有“as Data Source“解决方法
- Service
- dp学习笔记
- AD picture PCB tutorial 20 minutes clear label shop operation process, copper network
- eyb:Redis学习(2)
- 按图搜索1688商品接口(item_search_img-按图搜索1688商品(拍立淘接口)代码对接教程
猜你喜欢
推进产教融合 赋能教育创新发展 | 华云数据荣获“企业贡献奖”
idea中PlantUML插件使用
虚拟机网卡报错:Bringing up interface eth0: Error: No suitable device found: no device found for connection
C language implements sequential stack and chain queue
变压器的工作原理(图解,原理图讲解,一看就懂)
Inception V3 闭眼检测
Output method of list string print(*a) print(““.join(str(c) for c in a) )
缓存技术使用
输入框最前面添加放大镜&&background-image和background-color冲突问题
线程的6种状态
随机推荐
C语言的内置宏(定义日志宏)
无重复的字符的最长子串
报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS重大开销和将disab补充道
一道很简答但是没答对的SQL题
多米诺骨牌
2022-08-08: Given an array arr, it represents the height of the missiles that will appear in order from morning to night.When the cannon shoots missiles, once the cannon is set to shoot at a certain h
Redis 2 - 高级
Example of using the cut command
详解C语言中的wait()函数和waitpid()函数
普罗米修斯原理及节点发布
如何操作数据库
String.toLowerCase(Locale.ROOT)
报错:flask: TypeError: ‘function‘ object is not iterable
VS2019常用快捷键
2022.8.8DAY628
逆向工程
Inception V3 闭眼检测
物理层课后作业
2017.10.26模拟 b energy
The water problem of leetcode