adb shell
//查看手机上的包
pm list packages
//清除数据
pm clear 包名
获取当前界面元素:adb shell dumpsys activity top
中才有
启动app
adb shell am start -W -n com.xueqiu.android/.view.WelcomeActivityAlias(启动的activity) -S
安装appium server(需科学上网)
npm install -g appium
使用taobao cnpm安装
1. 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org
2. 使用cnpm安装 cnpm install -g appium
删除安装的appium
npm remove -g appium
设置输出log等级 --log-level error