1

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?

theai.1
  • 21
  • 4

1 Answers1

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