API referenceClassesTouchscreenOn this pageTouchscreenTouchscreen 类在相对于视口左上角的主框架 CSS 像素中操作。触摸屏上的方法只能在已初始化为 hasTouch 设置为 true 的浏览器上下文中使用。touchscreen.tap(x, y)touchscreen.tap(x, y)Added in: v1.8x <number>#y <number>#returns: <Promise<void>>#在位置 (x,y) 分发带有单个触摸的 touchstart 和 touchend 事件。