I am running tests to an app with Appium and TestNG. However, I must first log in to the app which requires an SMS confirmation code to be entered. Is there any way I can include this in my code? Some way to intercept that SMS code and enter it in the app?
Asked
Active
Viewed 281 times
1 Answers
0
Simplest solution is click on the OTP inputbox then there would be text to 'Autofill code' and make a wait till your "Verify" button says either is "enabled/checked". Then click on it and proceeds with the test .
2nd Solution would be something i found on appium discussion forum https://discuss.appium.io/t/how-to-read-sms-from-native-messaging-app-p-e-to-read-otp/10409

Snehal Gajbhiye
- 64
- 4