android自动化测试 input(实现自动连续拍照)

input [touchscreen|touchpad|touchnavigation] tap <x> <y>

在坐标(x,y)出点击一次

例如adb shell input tap 500 500,就是在屏幕(500,500)处点击一次;

实现:(~/dopic.sh)

for((i=0; i < 700; i++))
do
        adb shell input tap 350 1100

        //每一秒执行一次
        sleep 1
done

原文地址:https://www.cnblogs.com/mgstone/p/5810817.html