Get your app run

To get your app opened automatically with appium you need at least two things

the apps package name and the activity name

for package name there is a easy way to list all package in your device and store it in a txt so that you can search it easily

adb shell pm list packages > packages.txt

And for running activity we can open the one we want and run

adb shell dumpsys window windows | grep -E 'mFocusedApp'

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,136评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,413评论 0 23
  • 我想告诉你 我在五千米深处打发中年 我把岩层一次次炸裂 借此 把一生重新组合 我微小的亲人 远在商山脚下 他们有病...
    浅草识丹青阅读 3,283评论 1 1
  • 我看见太阳正向大地扫二维码 一个叫共享白天的人被他找到并加以关注 他用自己激情万丈的手去支持 一如支持他自己 一个...
    文森林木阅读 2,895评论 0 0