当前位置:网站首页>Automatic software test - read SMS verification code using SMS transponder and selenium

Automatic software test - read SMS verification code using SMS transponder and selenium

2022-06-29 17:56:00 Feng Dashao

    The last blog introduced how to pass Android Studio Development App Automatically intercept and read SMS verification code , Today we will introduce another non - development App To achieve , By using a third-party tool SMS forwarder combination Selenium Go to read the SMS verification code .


    One 、 open Appium To open the software , Get what you need id/class_name, Here's the picture , find “ agree! ” Corresponding value . dependent Appium Environment construction and setting , I won't repeat it here , Please refer to my previous blog .


 Insert picture description here

    Because some App For safety reasons , Disable screenshot settings will be loaded . Because screenshots are forbidden , When refresh Appium locate element when , Will fail . At this time, you can print the complete source code of the page directly , To get the corresponding element Value , If the developer does not open this permission , Please refer to my previous blog for details , How to solve this problem .


 Insert picture description here


    Two 、 Using SMS Forwarders , Automatically forward the received SMS to the designated email address , Related third-party SMS Forwarders , You can search for various utilities .


 Insert picture description here


 Insert picture description here


    3、 ... and 、 Last use Selenium Read mail content of mailbox , And extract SMS verification code through regularization , You can achieve the final authentication login .

原网站

版权声明
本文为[Feng Dashao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/180/202206291746544904.html