Since TouchActions have been deprecated in Appium 2.0, from my understanding we have to use different types of gestures.
I m trying to tap on an element at a specific point using clickGesture but I m getting this error
org.openqa.selenium.UnsupportedCommandException: Unknown mobile command “clickGesture”. Only shell,execEmuConsoleCommand,dragGesture,flingGesture,doubleClickGesture,longClickGesture,pinchCloseGesture,pinchOpenGesture,swipeGesture,scrollGesture,scrollBackTo,scroll,viewportScreenshot,viewportRect,deepLink,startLogsBroadcast,stopLogsBroadcast,acceptAlert,dismissAlert,batteryInfo,deviceInfo,getDeviceTime,changePermissions,getPermissions,performEditorAction,startScreenStreaming,stopScreenStreaming,getNotifications,listSms,type,sensorSet,deleteFile,clearApp,startActivity,startService,stopService,broadcast,getContexts,installMultipleApks,unlock commands are supported.
Code Snippet
((JavascriptExecutor) driver).executeScript("mobile: clickGesture", ImmutableMap.of(
"x", 500, "y", 500
));
How to resolve this issue or are there any other alternatives ?
Using
Appium Server 1.21.0-1