***URGENT - Mobile.swipe does not execute (screen stays static) but passes in log [Updated]

Hi there!

This solution helped me to solve issue with vertical scroll. Maybe, it will be helpful for somebody

import io.appium.java_client.TouchAction
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory as MobileDriverFactory
import io.appium.java_client.AppiumDriver as AppiumDriver
AppiumDriver<?> driver = MobileDriverFactory.getDriver()
while (	Mobile.waitForElementPresent(categoryText, 2, FailureHandling.STOP_ON_FAILURE) == false){
//Mobile.swipe(300, 1430, 300, 1200)	//does not work in Katalon studio (it taps on the position but does not scroll)
TouchAction ta = new TouchAction(driver);
ta.press(startX, startY).waitAction().moveTo(endX, endY).release().perform();
}
6 Likes