- 博客(4)
- 收藏
- 关注
原创 U报错The path to the driver executable must be set by the webdriver.chrome.driver system property; for
报错原因:无chrome驱动或驱动未放置对应目录下1、下载chromedriver驱动,版本要与chrome浏览器版本一致或接近,windows只有32位的,64位电脑可兼容,官网下载驱动地址:https://chromedriver.storage.googleapis.com/index.html2、下载完的exe文件放到C:\Windows\System32目录下即可...
2022-07-07 16:26:33
951
原创 pycharm添加解释器提示不支持或无效,运行时报错AttributeError: ‘HTMLParser’ object has no attribute ‘unescape
pycharm解释器问题排查例如:安装python时选择默认安装,AppData目录复制粘贴能找到该目录,但是!pycharm不支持查不到这个目录啊(可能是隐藏目录的原因),导致pycharm选择解释器时展示unsupport解决办法是选择下面Cutomize installation自行选择安装目录解释器无效,即该python版本已不被支持了,重新下载个新的版本吧......
2022-07-05 17:21:30
10844
3
原创 web自动化-python-元素定位
标题定位元素报错selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {“method”:“css selector”,“selector”:".btn btn-primary btn-block J_BtnLogin"}原因为c定位的lass中有空格,需要将空格换成英文的"."即可...
2021-03-04 16:39:35
206
1
原创 web自动化-python_启用浏览器
python启用浏览器报错系统找不到指定文件错误提示Message: ‘chromedriver’ executable needs to be in PATH.报错图如下解决方法:windows :找到找到python的安装目录,如:C:\Program Files\Python36复制浏览器驱动文件(.exe文件)到此目录中即可Linux:把下载好的文件放在 /usr/bin 目录下就可以了浏览器驱动文件下载地址:chromedriver下载地址:http://blog.csdn.
2021-03-04 12:20:06
268
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人