Created
July 17, 2016 11:58
-
-
Save Egorand/5ddfd9a787eb098021337f5628fd3569 to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-deny-current-permission-permanently
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void denyCurrentPermissionPermanently(UiDevice device) throws UiObjectNotFoundException { | |
UiObject neverAskAgainCheckbox = device.findObject(new UiSelector().text(TEXT_NEVER_ASK_AGAIN)); | |
neverAskAgainCheckbox.click(); | |
denyCurrentPermission(device); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment