Appium-Python-Client: 2.11.0
发布时间:2025-06-24 18:34:16 作者:北方职教升学中心 阅读量:149
pip show 包名。最新版本的Appium默认安装-Python-Client(本文安装时的版本为4.0.0),可用。
解决这类问题。解决方案。问题描述。
一、
Traceback (most recent call last): File "d:\xxx\index.py", line 3, in <module>ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action'
错误2:
AttributeError: 'NoneType' object has no attribute 'to_capabilities'
File "E:Python310lib\site-packages\selenium\webdriver\remote\webdriver.py", line 188, in __init__ capabilities = options.to_capabilities()AttributeError: 'NoneType' object has no attribute 'to_capabilities'
二、pip install Appium-Python-Client。Appium-Python-Client: 2.11.0。可执行以下命令:
在Python代码执行过程中,以下错误:
错误1: 这类问题是由于安装的Appium造成的-Python-Client与Selenium版本不兼容。 命令查看: No module named 'appium.webdriver.common.touch_action。
这类问题是由于安装的Appium造成的-Python-Client与Selenium版本不兼容。
因为Appium-Python-Client版太高必须减少版本使用,建议使用。