Resolving swipe error with iPhone 14 Pro Max

When I ran “swipe” with iPhone 14 pro max (18.1), Xcode (xcode-beta 16.2), Katalon studio (Free 9.5.0),
appium version 2.12.1, xcuitest@5.5.0 [installed (npm)], I got this error



**=============== ROOT CAUSE =====================**

**Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3011eae80**

**For trouble shooting, please visit:** **https://docs.katalon.com/katalon-studio/docs/troubleshooting.html**

**================================================**

**11-04-2024 08:53:47 오전 swipe(width / 2, height * 0.6, width * 0.5, height * 0.3)**
**Elapsed time: 21.087s**
**Cannot swipe on device. (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot swipe on device.**
**at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:38)**
**at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)**
**at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.swipe(SwipeKeyword.groovy:71)**
**at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.execute(SwipeKeyword.groovy:66)**
**at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)**
**at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.swipe(MobileBuiltInKeywords.groovy:192)**
**at 11.//////.///////(11./////:204)**
**at 11./////.run(11./////.101)**
**at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)**
**at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)**
**at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)**
**at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)**
**at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)**
**at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)**
**at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)**
**at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:137)**
**at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:128)**
**at TempTestCase1730677929741.run(TempTestCase1730677929741.groovy:25)**
**at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)**
**at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)**
**at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)**
**Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess **itForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3011eae80**
**Build info: version: '3.141.59', revision: 'unknown', time: 'unknown'**
**System info: host: 'gimgyeoiMacmini.lan', ip: '192.168.1.156', os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '14.6.1', java.version: '17.0.7'**
**Driver info: io.appium.java_client.ios.IOSDriver**
**Capabilities {automationName: XCUITest, browserName: , bundleId: ///////////////, databaseEnabled: false, deviceName: 김경동의 iPhone, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 1800, platform: MAC, platformName: iOS, platformVersion: 18.1, takesScreenshot: true, udid: 00008120-000A3D060CE0201E, waitForAppScript: true;, wdaLocalPort: 49623, webStorageEnabled: false}**
**Session ID: ce91ed54-66e7-4650-80de-190940061cfb**
**at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)**
**at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)**
**at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)**
**at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)**
**at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)**
**at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)**
**at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)**
**at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)**
**at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)**
**at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)**
**at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)**
**at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)**
**at io.appium.java_client.PerformsTouchActions.performTouchAction(PerformsTouchActions.java:41)**
**at io.appium.java_client.TouchAction.perform(TouchAction.java:187)**
**at com.kms.katalon.core.mobile.helper.MobileCommonHelper.swipe(MobileCommonHelper.java:64)**
**at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.doCall(SwipeKeyword.groovy:76)**
**at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.call(SwipeKeyword.groovy)**
**at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:19)**
**at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.swipe(SwipeKeyword.groovy:71)**
**at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.execute(SwipeKeyword.groovy:66)**
**at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)**
**at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.swipe(MobileBuiltInKeywords.groovy:192)**
**at Script1675406894128.checkBoilerControlMenu(Script1675406894128.groovy:204)**
**at Script1675406894128.run(Script1675406894128.groovy:101)**
**... 13 more**
**)**
1 Like

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Swipe here:

Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon. Thanks for being a part of our community!

Best,
Albert Le

Hi albert, I tried all the methods you suggested, but the error still shows

I’ve tried this method too,
“height = Mobile.getDeviceHeight()

width = Mobile.getDeviceWidth()

Mobile.swipe((int)(width0.5), (int)(height0.4 ), (int)(width0.5), (int)(height0.8))”

"height = Mobile.getDeviceHeight()

width = Mobile.getDeviceWidth()

int a, b, c
a = width0.5
b = height
0.4
c = height*0.8

Mobile.swipe(a, b, a, c)"

and I tried upgrading from Katalon version 9.7.2 to 10.0.0, but I’m getting an error displayed as follows:

=============== ROOT CAUSE =====================

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3037ea280

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshooting.html

================================================

11-04-2024 02:02:58 오후 Test Cases/기기관리/AI수면모드/02.AI수면모드 동작
Elapsed time: 53.441s
Test Cases/기기관리/AI수면모드/02.AI수면모드 동작 FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Cannot swipe on device.
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:64)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:34)
at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.swipe(SwipeKeyword.groovy:78)
at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.execute(SwipeKeyword.groovy:63)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.swipe(MobileBuiltInKeywords.groovy:189)
at 02.////////.run(02.////////:65)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:124)
at TempTestCase1730696577113.run(TempTestCase1730696577113.groovy:25)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3037ea280
Build info: version: ‘4.22.0’, revision: ‘c5f3146703’
System info: os.name: ‘Mac OS X’, os.arch: ‘aarch64’, os.version: ‘14.6.1’, java.version: ‘17.0.7’
Driver info: io.appium.java_client.ios.IOSDriver
Command: [f802d29b-53d7-4fe5-a8c6-d62c7b79e924, actions {actions=[org.openqa.selenium.interactions.Sequence@746f8520]}]
Capabilities {appium:automationName: XCUITest, appium:bundleId: /////////////////, appium:databaseEnabled: false, appium:deviceName: 김경동의 iPhone, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:newCommandTimeout: 1800, appium:platformVersion: 18.1, appium:takesScreenshot: true, appium:udid: 00008120-000A3D060CE0201E, appium:waitForAppScript: true;, appium:wdaLocalPort: 56478, appium:webStorageEnabled: false, platformName: IOS}
Session ID: f802d29b-53d7-4fe5-a8c6-d62c7b79e924

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:138)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:50)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:190)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518)
at org.openqa.selenium.remote.RemoteWebDriver.perform(RemoteWebDriver.java:604)
at com.kms.katalon.core.mobile.helper.MobileCommonHelper.swipe(MobileCommonHelper.java:72)
at com.kms.katalon.core.mobile.helper.MobileCommonHelper.swipe(MobileCommonHelper.java:67)
at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.doCall(SwipeKeyword.groovy:73)
at com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword$_swipe_closure1.call(SwipeKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:30)
… 18 more

Hi @hyuninj00, :wave:

I’ll bump this thread so that other members can jump in and support you.

Also, the next time you paste in a long error log, be sure to use the “Preformatted text” function of our forum to avoid long scrolling.

type or paste code here

Sorry @albert.vu :scream: I didn’t know
So what’s the solution?

Have you upgrade XCUItest version?

Hi, I was using Xcode 15.3, upgraded to the latest version, but the issue I reported started occurring. So, I installed 16.3, then uninstalled it, and reverted back to 15.3

@hyuninj00 I believe you need to be on XCUITest driver 7.0.0 or above. This will allow you to use xcode 16 as well.