Created
August 21, 2018 08:08
-
-
Save konifar/c7ede934ab217b9717a3bc03b9c55ad8 to your computer and use it in GitHub Desktop.
skip smart lock
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
fun skipSmartLock() { | |
val device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) | |
val noneButton = device.findObject(UiSelector().textMatches("(上記以外)|(NONE OF THE ABOVE)").className("android.widget.Button")) | |
if (noneButton.exists()) { | |
noneButton.click() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment