web自动化
半半啊
这个作者很懒,什么都没留下…
展开
-
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.html 2、下载完的exe文件放到C:\Windows\System32目录下即可...原创 2022-07-07 16:26:33 · 713 阅读 · 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 · 201 阅读 · 1 评论 -
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 · 167 阅读 · 1 评论