当前版本3.0运行时报错:AttributeError: 'WebDriver' object has no attribute 'find_elements_by_xpath'
解决:pip3 install selenium==4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
二、设备连不上
报错:adb server version (40) doesn't match this client (41);
原因:前client版本40,与server端的版本不匹配,当前版本过高引起的。注意,这里的client就是你电脑已经安装的adb程序的版本,而server,
也就是你的服务端,将要connect的设备。网上说出现这种不匹配只要下载对应的adb版本重新替换你之前安装的adb就行了,对应的android studio 路径就是你的android sdk 目录的platform-tools文件夹里面的adb.exe程序。
1、用netstat -ano|findstr “5037” 去查找5037对应的端口号的进程id
2、用tasklist |findstr “15828” 结果
3、杀调对应的进程后
4、adb devices在连接看一下
win参考文档:https://blog.csdn.net/gufenchen/article/details/91383397
mac参考文档:https://blog.csdn.net/gufenchen/article/details/91383397
![]()
![]()