I am unable to tap on Deny or Allow buttons on the permissions dialog in Android using Appium+Java. Do I need to add any capabilities before going to tap on those buttons?
Below
With the below snippet I am able to click on all the allow buttons to get the permissions.
while (driver.findElements(MobileBy.xpath("//*[@class='android.widget.Button'][2]")).size()>0) {
driver.findElement(MobileBy.xpath("//*[@class='android.widget.Button'][2]")).click();
}