How to get the device name, version and Android app details
To automate the Android app, we should know below capability values.
You can get version and device name from About Device section in Settings of your phone.
If you have installed the app on your phone, you can use below commands to find out the package and main activity of app. Ensure that you are on home screen of your app
dumpsys window windows
Here is the sample screenshot of above commands.
Or you can also use APK Info app (Intelloware) to get information about other apps.
Here is the sample code snippet using above capabilities
capabilities.SetCapability("VERSION", "4.4.4"); capabilities.SetCapability("deviceName","yourcellname"); capabilities.SetCapability("platformName","Android"); capabilities.SetCapability("BROWSER_Name", "Android"); capabilities.setCapability("appPackage", "org.softpost"); capabilities.setCapability("appActivity", "org.softpost.AbcActivity");