在 appium 测试期间执行 python 代码时出错

时间:2021-08-01 16:02:06

标签: python macos automated-tests appium-android

我是对真正的 Android 设备进行 appium 测试的新手。我正在使用 python 运行测试用例。但是我在运行基本的 python 代码时遇到了错误,比如只创建 webdriver instance 。我附上了错误的 ss 和 python 代码。

我已经设置了 ANDROID_HOME 和 JAVA_HOME 环境变量,还在 python 中安装了带有 webdriver 、 selenium 等的 appium 客户端包。

我还通过运行 appium-doctor --android 命令检查了所有要求,一切都很好,因为我还能够使用 appium 服务器中的启动会话调用应用程序。但无法运行基本的python代码。

所以,如果我能得到任何帮助,请:) 我也在使用 mac。

error pic

this is the python code, i have not added any functionalities here , just created a driver instance, but it's still showing error

0 个答案:

没有答案