Created
July 17, 2016 12:00
-
-
Save Egorand/7689932d8f2f356e8cd87fbc62783bba to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-grant-permission
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 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