Skip to content

Instantly share code, notes, and snippets.

@konifar
Created August 21, 2018 08:08
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 konifar/c7ede934ab217b9717a3bc03b9c55ad8 to your computer and use it in GitHub Desktop.
Save konifar/c7ede934ab217b9717a3bc03b9c55ad8 to your computer and use it in GitHub Desktop.
skip smart lock
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