app自动化遇到的问题及解决方案
问题1:执行appium连接报错
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details...
报错原因:
appium服务没有配置adnroid_home和java_home
解决方案:在appium服务中配置adnroid_home和java_home
配置成功后,重启appium服务,然后重新运行python代码