Created
July 17, 2016 11:48
-
-
Save Egorand/0066471d9a2a8cabb2eec0adbaea0c85 to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-assert-text-visible
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 assertViewWithTextIsVisible(UiDevice device, String text) { | |
UiObject allowButton = device.findObject(new UiSelector().text(text)); | |
if (!allowButton.exists()) { | |
throw new AssertionError("View with text <" + text + "> not found!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment