Use robotframe to perform app automation
First of all
1. Open appium
2. The phone needs to open the developer mode (settings-system-developer options-USB debugging)
The rf script is as follows:
1 Comment Address device version number device number (simulator can write any value) Package name 2 open application http: // localhost: 4723 / wd / hub platformName = Android platformVersion = xxx deviceName = xxxxx appPackage = xxx.xxx appActivity = xxxxx 3 ... unicodeKeyboard resetKeyboard = True = True 4 AppiumLibrary.Wait the Until the Contains Element name = xxx page 30 # waiting for pages to appear 5 AppiumLibrary.Input Text name = Please enter the phone number 18795885518 # enter the phone number 6 AppiumLibrary.click Element the above mentioned id = xxxxxxx # Get message codes . 7 SLEEP. 3 . 8 Xxxxxx ID = XXXX text AppiumLibrary.Input # codes
As shown: