Appium 配置
我们安装打开 Appium 后,需要先配置
点击 Edit Configurations 在里面配置
ANDROID_HOME
:
JAVA_HOME
:
配置好后要 Save And Restart
appium 使用
基本使用案例
from appium import webdriver
import time
desc = dict()
desc["platformName"] = "android"
desc["platformVersion"] = "7.1.2"
desc["deviceName"] = "****"
desc["appPackage"] = "com.android.settings"
desc["appActivity"] = ".Settings"
driver = webdriver.Remote("http://localhost:4723/wd/hub", desc)
time.sleep(5)
driver.quit()