一、客户端启用appium。
二、CMD中命令行启动appium。
三、启动的代码。(appium的服务一和二选择一个就好了)
from appium import webdriver
from time import sleep
def get_driver():
capablities = {
"platformName": "Android",
"deviceName": "127.0.0.1:62001",
"app": "C:\\java\\gearbest_v4.0.1_release.apk",
"appWaitActivity":"com.globalegrow.app.gearbest.soa.model.account.activity.UserLikeActivity"
}
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", capablities)
return driver
driver = get_driver()