Hello,
After reading post and trying I am still not able to click on Allow permission button.
capabilities.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS,“true”);
Using
Client - 6.1.0
Appium Server - 1.8
I get the below in logs
e[36minfoe[39m: [debug] Error: abcd/.MainActivity never started. Current: com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1314:12)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1258:7)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
@Aleksei s u mentioned in post https://discuss.appium.io/t/unable-to-click-devices-location-permission-dialog-allow-deny-button-in-android-using-appium/20836/2 did try the same can you
please advise.
Also @Aleksei Does Capability order impact? I have current now defined…
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.FULL_RESET,“true”); FEW Capabilities… defined an at end I have the grant permisssion
capabilities.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS,“true”);