Cannot use velocity in iOS-Specific Gestures

iOS: 14.7.1
Appium: 1.21.0
XCUITestDriver (v3.43.0)

According to:
mobile: swipe

JavascriptExecutor js = mobileDriver();
Map<String, Object> params = new HashMap<>();
params.put("direction", "left");
params.put("velocity", 250);
params.put("element",element(TAB_BAR_IOS).withTimeoutOf(Duration.ofSeconds(30)).waitUntilVisible().getAttribute("UID"));
js.executeScript("mobile: swipe", params);

Although, velocity was set, but it was useless. It does not affect to speed of scrolling.
Any one faced this problem?

Use better Actions. It has swipe time.
http://appium.io/docs/en/commands/interactions/actions/

1 Like

Thank for your information @Aleksei .
Could you explain me: Actions is better than TouchAction?

p/s: as I know, iOS Gestures is supporting better than TouchAction on IOS, so I am considering to use it :slight_smile:

TouchAction does not control how fast swipe happens. Try Actions. I guarantee you will be impressed.

1 Like

Fixed in Appium 1.22