Take Huawei mobile phone as an example
1, connected to the computer with a USB cable
2. Enter phone settings about mobile phone
3. Continue to click on the version number to open developer options
4. Turn on USB debugging
5. Enter the computer cmd command window
6. ADB devices
If it is not recognized, install the USB driver for the corresponding phone
ADB command
is a generic command-line tool
Communicate with an emulator or connected Android device
Perform various operations, such as installing and debugging applications, providing access to the shell on the device
Our Appium, the automation of Android relies heavily on this ADB tool to perform many of the commands required for automation, such as acquiring device information, transferring files to the phone, installing APK launcher, and launching some programs.
Include Client Daemon server
Frequently used commands to view URLs: Https://developer.android.com/studio/command-line/adb.html#devicestatus Android Debug Bridge
Element another type of operation
Tap method
Click Similar, all is the touch interface
The difference is that tap is for a coordinate click (the coordinate position of the upper-left and lower-right corner of the bounds)
Driver.tap (505,1389)
Real Phone Connection control