Appium官方文档:
https://appium.io/docs/en/about-appium/getting-started/index.html
Appium官方API文档:
https://appium.io/docs/en/about-appium/api/
连接示例:
desired_caps = {'platformName': 'Android',
'platformVersion': '6.0.1',
'deviceName': 'device',
'appPackage': 'com.okyuyin',
'appActivity': 'com.okyuyin.login.LoadingActivity',
'automationName': 'uiautomator1',
'resetKeyboard': 'true'}
# 远程连接到devices
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
login_start_run(driver)