Swipe doesn't work after update Katalon 9.1 and Appium 2.x.x

Hai everyone,
I have step:

Mobile.swipe(667, 773, 65, 773, FailureHandling.OPTIONAL)

in Katalon 9.0 with Appium 1.22.3 can be work properly.
But after updating to
Katalon 9.1
Appium 2.3.0
image

The step can be passed, but my application doesn’t move.
Kindly need your advice, thank you.

1 Like

Hi,

Do you receive any error log? What do you mean by “doesnt move”? Thank you

1 Like

I have same problem. After updating to Katalon 9.1 and Appium 2.3.0, Swipe is passed in test case, but physically it doesn’t work in tested application (a scroll panel, which should be moved by Swipe, wasn’t move.


i have same problem, any update on this katalon team?

Could you please give the apk file?So I could take a look on that?

same issue here. Mobile.swipe is not throwing any errors but not working on Android device

Hi there @here,

For those of you who are having this issue, could you follow @phong.nguyen’s suggestion and upload your APK file here so that he could have a look at them?

Thanks,
Albert

i found a workaround for this while Mobile.swipe is still not working.

@Keyword
def scrollDownUntilObjectIsVisible3(MobileTestObject pObject) {
int deviceHeight = Mobile.getDeviceHeight()
int deviceWidth = Mobile.getDeviceWidth()

	Mobile.comment('[INFO] Device height: ' + deviceHeight + " and width: " + deviceWidth )

	int swipeTop = deviceHeight * 0.3
	int swipeHeight = deviceHeight * 0.3
	int swipeLeft = deviceWidth * 0.5
	AppiumDriver<?> driver = MobileDriverFactory.getDriver()
	
	while (	Mobile.waitForElementPresent(pObject, 2, FailureHandling.STOP_ON_FAILURE) == false){
		//Java
		((JavascriptExecutor) driver).executeScript("mobile: swipeGesture", ImmutableMap.of(
				"left", swipeLeft, "top", swipeTop, "width", 0, "height", swipeHeight,
				"direction", "up",
				"percent", 0.75
				));
	}
}

m88-stg.apk (17.8 MB)
here is the APK it can only be accessed in our internal office network.

I am currently using -
Katalon 9.1.0
Appium 2.3.0
Java 21.0.1
Macbook Pro - MacOS Ventura 13.5 (Apple M2 Chip)


the Mobile.swipe keyword is not working. It passes during execution but it is not actually swiping on the real android device

TEST RESULT.html (21.4 MB)
appium.log (275.2 KB)
execution0.log (182.1 KB)

attached are the test results and logs.

Thanks for your information. Could you please check the uiautomator2 driver version?We checked on uiautomator version v2.35.0 and it works fine. If could, please update yours to that version and re-try.
Steps:

  1. Go to your appium folder, open terminal
  2. Type in terminal : appium driver update uiautomator2@2.35.0 (you should backup the driver just in case)

Notice: I tried with uiautomator2 with latest version 2.42.1, it seems there is an issue with swipe action, we are working on it.
3.

Oh, I found that swipe is not real swipe because the distance between start position and end position is too small, Ex: Swipe(400, 800, 400,400) is not swipe, but when I try to increase the distance by Swipe(400,1200,400,100), it works like a charm.

i was using the following

  • uiautomator2@2.37.0 [installed (npm)]

i tried downgrading to 2.35.0

  • appium uninstall uiautomator2
  • appium install uiautomatior2@2.35.0

still same result. swipe is still not working. seems unrelated to the uiautomator2 version

Could you try to increase the distance between Start Position and End Position?

Oh, I found that swipe is not real swipe because the distance between start position and end position is too small, Ex: Swipe(400, 800, 400,400) is not swipe, but when I try to increase the distance by Swipe(400,1200,400,100), it works like a charm.

I also have the same symptoms. Both Android and IOS are in the same state

This issue still exists even after updating the Katalon Version to 9.3.0.

I am trying to swipe left on my Android device

Mobile.swipe(1000,800,150,800)

The swipe keyword did not do anything but showed as passed in the results.
I am currently calling the swipeGesture Appium command as a temporary workaround.

Is there an open bug for this?