linux - shell

获取连接的真机或模拟器设备
adb devices

进入模拟器emulator-5554环境
adb -s emulator-5554 shell
adb shell 也是可以的

利用adb shell 命令实现自动化操作
adb shell input tap 200 400
adb shell input text ceshiren.com
adb shell “uiautomator dump && cat /sdcard/window_dump.xml”

uiautomator dump : 获取模拟器当前页面

set -x: 开启shell的调试模式,执行的每条命令和结果都可以打印出来

posted @ 2022-11-09 16:41  汪季  阅读(21)  评论(0)    收藏  举报