Skip to main content

Error "HTTP method that is not supported by the mapped resource" when Tap/Swipe on Mobile

You are unable to perform the Swipe action on your device and might encounter the following error:
Caused by: org.openqa.selenium.UnsupportedCommandException: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource

Refer to the two causes below to identify your solutions.

You might encounter the error if your XCUITest is version 7.x. Currently, Katalon Studio supports XCUITest version 5.x. You need to remove your current XCUITest, then reinstall it.

  1. Uninstall the current XCUITest:
    appium driver uninstall xcuitest
  2. Install XCUITest version 5.x. For example:
    appium driver install xcuitest@5.0.0

You might encounter the error if your UIAutomator2 Driver is version 3.x.x.

Katalon Studio has not supported UIAutomator2 Driver version 3.x.x. You need to downgrade to UIAutomator2 v2.10.0 and remove the UIAutomator2 server in the device.

  1. Open a terminal to uninstall the current uiautomator2:
    appium driver uninstall uiautomator2
  2. Go to <<user directory>>/.katalon/tools/android_sdk/platform-tools then open a terminal/cmd there, run the following command:
    ./adb devices

    ./adb shell pm list package -3
    You will see a list of the contained items as below:
    package:io.appium.settings
    package:io.appium.uiautomator2.server.test
    package:io.appium.uiautomator2.server
    package:io.appium.android.apis
    package:com.example.myapplication
  3. From the same terminal, uninstall the old uiauotmator2 server by running the below command:
    ./adb uninstall io.appium.uiautomator2.server.test
    ./adb uninstall io.appium.uiautomator2.server
  4. Re-install the new uiautomator2 at your root folder terminal:
    appium driver install uiautomator2@2.10.0
Was this page helpful?