行走的Coder

俱怀逸兴壮思飞,欲上青天览明月。

导航

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

 

posted on 2016-08-26 16:18  行走的coder  阅读(980)  评论(0编辑  收藏  举报