Would it be possible to bypass the permission pop-up on Android automation?

Would it be possible to bypass the permission pop-up on Android automation?

Hi Ian Partridge,

To bypass the permission pop-up on Android Automation. You can try passing the below capability:

capability:driver = new AndroidDriver(new URL(gridURL), capability);
driver.context("NATIVE_APP");
driver.findElement(MobileBy.xpath("//*[@class='android.widget.Button'][2]")).click();