错误信息
提示虚拟环境报错:删除venv文件后,重启pycharm,再次添加虚拟环境即可
升级python版本后MobileBy 报错,python3.11升级为python3.12.3
把 from appium.webdriver.common.mobileby import MobileBy 改为 from appium.webdriver.common.appiumby import AppiumBy即可
File "E:\code\ci-scripts\.venv\Lib\site-packages\appium\webdriver\webdriver.py", line 229, in __init__ super().__init__( File "E:\code\ci-scripts\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 188, in __init__ capabilities = options.to_capabilities() ^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'to_capabilities' Process finished with exit code 1
解决方案:
更换selenium,appium-python-client版本未 2.0
更换后又出现appiumBy报错,再次更换版本:selenium 4.1.0;appium-python-client 2.1.2
标签:__,webdriver,appium,python,升级,报错,版本 From: https://www.cnblogs.com/meng-li/p/18224728