Appium环境搭建和命令
1.sdk:搭配android studio 安装
2.appium desktop 安装
Android命令
adb kill -server
adb device
adb logcat
adb logcat | grep -i desplayed
adb logcat | grep -i xueqiu过滤特定app数据
adb logcat | grep -i xueqiu | les 缩小过滤范围
获取app入口命令
adb logcat |grep -i desplayed
APP 信息
1)获取任务列表adb shell dumpsys activity activities
2)获取当前界面元素 adb shell dumpsys activity top
app入口
1)adb logcat | grep -i displayed
aapt dump badging mobile.apk | grep launchable-activity
apkanalyzer
启动应用
adb shell am start -W -n com.xueqiu.android/.view.WelcomeActivityAlias -S
元素定位
-id
-accessiblityId(content-desc)
-xpath
//*[@text='开启']
//*[contains(@text,'手机')]