点击 【show/hide boilerplate code】
在录制的脚本中会 展示出 appium启动应用时 所需代码
# This sample code uses the Appium python client # pip install Appium-Python-Client # Then you can paste this into a file and simply run with Python from appium import webdriver import time #给sleep() 用的 caps = {} caps["platformName"] = "android" caps["platformVersioin"] = "XXXXX" caps["deviceName"] = "XXXXXXX" caps["appPackage"] = "XXXXXXXXXXXXXX" caps["appActivity"] = "XXXXXXXXXXXXXXXXXXXXX" driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)