Launching Settings - UI Automator article on Medium
This file contains 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
@Test | |
fun validateWifi() { | |
// Open apps list by scrolling on home screen | |
val workspace = device.findObject( | |
By.res("com.google.android.apps.nexuslauncher:id/workspace") | |
) | |
workspace.scroll(Direction.DOWN, 1.0f) | |
// Click on Settings icon to launch the app | |
val settings = device.findObject( | |
By.res("com.google.android.apps.nexuslauncher:id/icon").text("Settings") | |
) | |
settings.click() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment