Appium – How to get current App package and activity Nameusing ADB commands:
For automating any app using Appium, we need to get App package name
and App activity name.
Let us learn how to get the App package and activity Name using ADB
commands, Here I’m opening the Calculator app on my mobile same shown in
below image:
1. First connect your device to your system via USB
2. Then open the calculator app in your mobile (open your
respective app which you want to get the app package name & app
activity name) :
2. Now open the command prompt:
3. Type “adb shell” command in command prompt:
Now it opened the shell editor
4. Type below command now :
5. Output will be as shown below :
6. Explanation:
com.android.calculator2/com.android.calculator2.Calculator
package name: com.android.calculator2
activity name: com.android.calculator2.Calculator
No comments:
Post a Comment
If any suggestions or issue, please provide