Skip to content

Instantly share code, notes, and snippets.

@Egorand
Created July 17, 2016 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Egorand/7689932d8f2f356e8cd87fbc62783bba to your computer and use it in GitHub Desktop.
Save Egorand/7689932d8f2f356e8cd87fbc62783bba to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-grant-permission
public static void grantPermission(UiDevice device, String permissionTitle) throws UiObjectNotFoundException {
UiObject permissionEntry = device.findObject(new UiSelector().text(permissionTitle));
permissionEntry.click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment