Testing Mobile native app with Appium using BroswerStack (Android device) and it throws an UnsupportedCommandException (please see below) when trying to execute the swipeGesture to perform a swipe up. Btw, it is working in a local execution using real devices or Emulators.
org.openqa.selenium.UnsupportedCommandException: Unknown mobile command "swipeGesture".
Only shell,scrollBackTo,viewportScreenshot,deepLink,startLogsBroadcast,stopLogsBroadcast,
acceptAlert,dismissAlert,batteryInfo,deviceInfo,changePermissions,getPermissions,
performEditorAction,startScreenStreaming,stopScreenStreaming,getNotifications,listSms,
type commands are supported.
My code is as follows
((JavascriptExecutor) driver).executeScript("mobile: swipeGesture", Map.of(
"left", location.x, "top", location.y - swipeBoxHigh,
"width", 100, "height", swipeBoxHigh,
"direction", "up",
"percent", 1,
"speed", 1500
));
Any idea why I am getting this Exception in browswerStack?
Any suggestion how to perform a swipe gesture in android using browserStack?