Posts

Showing posts from September, 2019

Automate Mobile OTP Number with Selenium

Hello Friends, In your testing you might come across the use case where you need to automate OTP number received in your Mobile Phone. As we all know Selenium can interact with Web Application on browsers, then question arises how to read OTP and use in scenarios like User Registration on some mobile app, payment wallet etc. Also, we know that OTP number is not fixed and we cannot rely on same OTP number every-time. But, we still want to test our application for these user registration scenarios with OTP. In this blog we will discuss about this case and try to automate this manual verification step. Step1 : Create Java Maven Project on eclipse. Step2 : Add Maven dependencies in POM.xml. < project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > < modelVersion > 4.0.0 <