appium inspector 连接安卓设备
首先找到app的包名和activity。
查看包名
adb shell "dumpsys window | grep mCurrentFocus"
查看包对应的activity,输入下面的命令,再找到cmp
adb shell monkey -p com.jingdong.app.mall -vvv 1
启动appium server
启动inspector,配置信息
{
"platformName": "Android",
"appium:platformVersion": "10",
"appium:deviceName": "P7CDU1",
"appium:automationName": "UiAutomator2",
"appium:appPackage": "com.jingdong.app.mall",
"appium:appActivity": "com.jingdong.app.mall.main.MainActivity",
"appium:noReset": true
}