Skip to content

Instantly share code, notes, and snippets.

@Egorand
Created July 17, 2016 11:49
Show Gist options
  • Save Egorand/2b64e4f61d3982328be6a805da969c04 to your computer and use it in GitHub Desktop.
Save Egorand/2b64e4f61d3982328be6a805da969c04 to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-deny-current-permission
public static void denyCurrentPermission(UiDevice device) throws UiObjectNotFoundException {
UiObject denyButton = device.findObject(new UiSelector().text(TEXT_DENY));
denyButton.click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment