摘要: 环境:Windows selenium 3.141.0 Python 3.8.10 Chrome 90.0.4430.212 ChromeDriver 90.0.4430.24 最近发现执行完Selenium脚本后,在个人的Temp目录下会有大量的临时文件夹。类似下面这样 C:\Users\Admi 阅读全文
posted @ 2021-06-07 17:21 努力学习的氧 阅读(9736) 评论(2) 推荐(0) 编辑
摘要: 接触过Selenium的都知道元素定位有八种方法,但用不同的方法在执行时有什么区别呢? 元素定位8种方法(Python版),当然还有每一个方法对应的find_elements方法 find_element_by_id() find_element_by_name() find_element_by_ 阅读全文
posted @ 2021-04-19 12:36 努力学习的氧 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 记录在使用python过程中踩的坑 使用xlwt库对excel文件进行保存时报错 descriptor 'decode' requires a 'bytes' object but received a 'NoneType' log: Traceback (most recent call last 阅读全文
posted @ 2021-04-19 11:57 努力学习的氧 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: 记录在使用selenium过程中踩的坑 在使用selenium时,用click点击网站弹出的文件上传框的“上传文件”按钮不生效,报错selenium.common.exceptions.InvalidArgumentException log如下: test_xxxxxx.py::test_xxxx 阅读全文
posted @ 2021-04-16 16:55 努力学习的氧 阅读(1522) 评论(0) 推荐(2) 编辑