1.Appium+Python 脚本运行报错: A session is either terminated or not started
解决方案:参考这篇文章
https://blog.csdn.net/weixin_41857283/article/details/97366763
2.AttributeError: ‘list’ object has no attribute ‘click’
解决方法:将”driver.find_elements_by_xpath“改为“driver.find_element_by_xpath”
3. File “C:\Python38\lib\BSTestRunner.py”, line 121, in to_unicode
return unicode(s)
NameError: name ‘unicode’ is not defined
4.夜神模拟器开了多开模拟器之后,无法连接到adb:
daemon not running; starting now at tcp:5037
daemon started successfully
List of devices attached
原因分析:之前配置夜神模拟器的时候有一个步骤是将adb文件夹下的adb.exe复制到夜神模拟器安装目录下bin目录下,重命名为nox_adb.exe(替代原来的nox_adb.exe)。然后新开模拟器会重新生成一个nox_adb.exe覆盖了原来我们复制过来的exe文件,所以就连接不上了。
解决:将adb文件夹下的adb.exe复制到夜神模拟器安装目录下bin目录下,重命名为nox_adb.exe(替代原来的nox_adb.exe)