Last active
November 3, 2021 01:11
-
-
Save heitorpaceli/4f04242c313f9ad502799e440a7c586b to your computer and use it in GitHub Desktop.
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