Let's do the exercise of launching a new session. We need four mandatory Desired Capabilities to launch a new session when we are working with a pre-existing app or three mandatory Desired Capabilities when we want to deploy the app on emulator.
When we want to launch a new session for an installed app (Quikr, in our case) on emulator/device, use the mentioned Desired Capabilities:
- platformName: Android
- deviceName: Nexus
- appPackage: com.quikr
- appActivity: com.quikr.old.SplashActivity
Here's how the screen will look after setting the values. On the right-hand side, you can see the JSON being created when we add new Desired Capabilities:
Clicking on Start Session will launch a new Appium inspector screen, as illustrated. Clicking on Save As... will allow you to save the config as preset values.