Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created September 13, 2024 12:51
Show Gist options
  • Save SarahElson/40eb4f07631c03f78c9e055e5869ea6d to your computer and use it in GitHub Desktop.
Save SarahElson/40eb4f07631c03f78c9e055e5869ea6d to your computer and use it in GitHub Desktop.
How to Test Biometric Authentication With Appium
public class BiometricAuthTests extends BaseTest {
@Test
public void testFingerPrintAuthenticationLogin() {
final MainPage mainPage = new MainPage(this.androidDriverManager.getAndroidDriver());
final LoginPage loginPage = mainPage.openLoginPage();
loginPage.performBioMetricLogin(1);
assertEquals(loginPage.getSuccessMessageTitle(), "Success");
assertEquals(loginPage.getSuccessMessageText(), "You are logged in through Fingerprint!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment