首页 > 解决方案 > Appium-node.js - 我正在使用这个触摸功能并想点击这个特定的坐标。但它给了我一个错误

问题描述

driver.touchAction({actions: 'tap', x: 269, y: 1605})

错误:

未知错误:处理命令时发生未知的服务器端错误。原始错误:未知操作未定义

标签: node.jsautomationappiumappium-android

解决方案


请尝试使用:TouchAction action = new TouchAction(Mobiledriver); action.tap(PointOption.point(269, 1605)).perform().release();


推荐阅读