1、查看手机的所有进程:adb shell dumpsys activity top | findstr ACTIVITY

2、输入pid,查看具体进程:比如,adb shell ps 18951

3、一般微信小程序的进程就是:com.tencent.mm:appbrand0
4、在配置appium的时候一般就是需要配置上:
desired_caps['appPackage'] = "com.tencent.mm"
desired_caps['appActivity'] = ".ui.LauncherUI"
desired_caps['chromeOptions'] = {"androidProcess": "com.tencent.mm:appbrand0"}

网友评论