Such a situation may arise quite a few times when we need to handle app permissions alerts. An app permissions dialog or alert looks like the one displayed in the following screenshot:
To understand how to handle the app permissions dialog on a mobile, understanding the DesiredCapabilities class is quite important. Let's understand the DesiredCapabilities class, after which we will see what Desired Capability has to be put in place for handling the app permissions dialog on Android in the autograntpermissions capability in Android section.