JavascriptExecutor js = (JavascriptExecutor)driver;
HashMap<String,Double> tapObject = new HashMap<String,Double>();
tapObject.put("touchCount", new Double(1)); 
tapObject.put("x", new Double(x));//x=400
tapObject.put("y", new Double(y));//y=600
js.executeScript("mobile : tap", tapObject);


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