Created
September 13, 2024 12:53
-
-
Save SarahElson/a5a3fc122dd8de16cc72e17d174c7083 to your computer and use it in GitHub Desktop.
How to Test Biometric Authentication With Appium
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
public class MainPage { | |
private final AndroidDriver androidDriver; | |
public MainPage(final AndroidDriver androidDriver) { | |
this.androidDriver = androidDriver; | |
} | |
public void openMenu(final String menuName) { | |
this.androidDriver.findElement(AppiumBy.accessibilityId(menuName)).click(); | |
} | |
public LoginPage openLoginPage() { | |
openMenu("Login"); | |
return new LoginPage(this.androidDriver); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment