Test Biometric Authentication on iOS
You can test your app by using BrowserStack’s custom executor. The custom executor includes the biometricUserOption action and the userOption argument. Before you use the custom executor, ensure that you enable biometric authentication testing.
In your test script, add the following custom executor before the biometric authentication workflow is triggered:
jse.executeScript(“browserstack_executor: {\“action\“:\“biometricUserOption\“,\“arguments\“: {\“userOption\” : \“pass\“}}“);
driver.execute(“browserstack_executor: {\“action\“:\“biometricUserOption\“,\“arguments\“: {\“userOption\” : \“pass\“}}“);
driver.execute_script(“browserstack_executor: {\“action\“:\“biometricUserOption\“,\“arguments\“: {\“userOption\” : \“pass\“}}“);
driver.execute_script(“browserstack_executor: {\“action\“:\“biometricUserOption\“,\“arguments\“: {\“userOption\” : \“pass\“}}“);
(IJavaScriptExecutor)driver).ExecuteScript(“browserstack_executor: {\“action\“:\“biometricUserOption\“,\“arguments\“: {\“userOption\” : \“pass\“}}“);
You can assign the following values to the userOption argument:
-
pass: Use this value to pass the biometric authentication test. -
fail: Use this value to fail the biometric authentication test. -
cancel: Use this value to cancel the biometric authentication test.
When the biometric authentication workflow is triggered in your app, the test is passed, failed, or canceled depending on the value assigned to the userOption argument.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!