1. Download and install AirtestIDE-win-1.2.14, official download address: Airtest Project
Two, airtest is mainly divided into
- Airtest auxiliary window (based on image recognition)
- Poco auxiliary window (based on application UI structure hierarchy)
- Selenium auxiliary window (operation browser)
- Script editing and log viewing window
- Device window (can be connected to Android/iOS real machine or emulator and windows window, etc.)
3. Use steps
Connect the mobile phone to the computer with a data cable, and the device information will appear in the device window
Click connect to connect to the phone, and the phone page will appear
Use the Airtest auxiliary window to edit the foot, click the touch on the left, and perform "screenshot operation" on the part you want to operate
The following display will appear:
Four,
Run the airtest script in pycharm:
pip install airtest and poco library
pip install airtest
pip install pocoui
Open the written script file in pycharm, and paste the code in the script editor into pycharm
At this time, if you want to run the code in pycharm correctly, you need to copy the picture to the folder of the pycharm code, otherwise you cannot find the corresponding path