from appium import webdriver
desired_caps = {
"platformName": "Android",
"platformVersion": "7.1.2",
"decvicesName": "xiaomi",
"appPackage": "com.taobao.taobao",
"appActivity": "com.taobao.tao.welcome.Welcome",
"noReset": "True"
}
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_caps)
本文摘自 :https://www.cnblogs.com/