yan061

导航

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
}

posted on 2024-02-21 15:32  yan061  阅读(170)  评论(0编辑  收藏  举报