public class App_test {
private static AndroidDriver driver_sanxing = null;
public static void main(String args[]) throws InterruptedException{
driver_sanxing=ConfigureAndroid.getAndroidDriver();
if (driver_sanxing == null) {
System.out.println("客户端启动失败");
} else {
System.out.println("app 启动成功");
TouchAction action=new TouchAction(driver_sanxing);
action.press(PointOption.point(710,671)).perform();
Thread.sleep(5000);
driver_sanxing.quit();
}
}
}


↙↙↙阅读原文可查看相关链接,并与作者交流