Guest User

Untitled

a guest
Aug 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. fun skipSmartLock() {
  2. val device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
  3. val noneButton = device.findObject(UiSelector().textMatches("(上記以外)|(NONE OF THE ABOVE)").className("android.widget.Button"))
  4. if (noneButton.exists()) {
  5. noneButton.click()
  6. }
  7. }
Add Comment
Please, Sign In to add comment