我想运行一个用python编写的测试,它使用安装在物理android设备上的chrome应用程序使用appium浏览到给定的URL。使用python运行安卓设备的appium测试时出现的问题
我在Mac上使用Pycharm作为我的IDE。
我得到的问题似乎很容易解决,我以为我已经修复它,但它仍然出现。
当我尝试运行我的脚本错误是:
WebDriverException: Message: u'A new session could not be created. (Original error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.)'
我的SDK的路径是:
/Volumes/ADATA HD710/Android emulator
的adb
在/Volumes/ADATA HD710/Android emulator/platform-tools
我已经设置了路径在我的Mac和Pycharm中的环境变量部分,但我仍然遇到这个错误,当我运行脚本。
有没有什么明显的我错过了?
任何帮助将不胜感激。
我应该补充说我已经运行了appium-doctor.js并且这个报告没有问题。 –