标签:cap drive host activity alt 运行 port roi form
用pycharm工具进行编写,运行一个开启淘宝app实例
from appium import webdriver
desired_caps = {
"platformName": "Android",
"platformVersion": "5.1",
"deviceName": "U4KF9HSK99999999", #真机设备名称 通过adb devices获取
"appPackage": "com.taobao.taobao",
"appActivity": "com.taobao.tao.welcome.Welcome",
"noReset": False
}
driver = webdriver.Remote(‘http://localhost:4723/wd/hub‘, desired_caps)
运行前先开启appium-server即可,方便记录日志
python+Appium自动化:运行第一个appium脚本
标签:cap drive host activity alt 运行 port roi form
原文地址:https://www.cnblogs.com/bugbreak/p/11990859.html