I\'m using webdriver.io to write a suite of Appium tests for a hybrid Cordova App.
\"appium\": \"^1.10.0\",
\"wdio-appium-service\": \"^0.2.3\",
\"wdio-jasmi
id
associated with the allow/deny permission button, so you can use that instead of the identifier you have used. The id
for allow
button is: com.android.packageinstaller:id/permission_allow_button
.
The id
for deny
button is: com.android.packageinstaller:id/permission_deny_button
There is autoGrantPermissions
DesiredCapability, if you set it to true
- Appium will automatically determine which permissions are required by your application and grant them to the application during the installation procedure.
The capability is set to false
by default so you need to explicitly set it like:
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability(MobileCapabilityType.NO_RESET, false);
dc.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);
driver = new AndroidDriver<>(url, dc);
More information: