# Press and hold home button not detected by Katalon

**URL:** <https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [December 4, 2019, 10:31am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114 "2019-12-04T10:31:01Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammad.arif](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mohammad.arif](https://forum.katalon.com/u/mohammad.arif)\
**Post date:** [December 4, 2019, 10:31am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/1 "2019-12-04T10:31:01Z")

</div>

I have an Android phone that has a feature where pressing and holding the Overview button will close all open apps and pressing and holding the Home button will open up the Google Assistant. Mobile keyword includes Press Home but not press and hold.

I have tried Tap and Hold and Tap and Hold at Position. Tap and Hold does not work as the Home, Back and Overview buttons are not being picked up by the Mobile Spy/Recorder so I can’t define the objects to Tap and Hold. Tap and Hold at Position fails with an error stating  
`Coordinate [x=540.0, y=2100.0] is outside of element rect: [0,0][1080,2016]`

This makes me believe Katalon is not looking below 2016 (where the Home, Back and Overview buttons are). The device full size is 1080 x 2160. Does anyone know how to press and hold on these buttons at the bottom of the screen?

---

<div class="post-metadata">

**Author:** ![mohammad.arif](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mohammad.arif](https://forum.katalon.com/u/mohammad.arif)\
**Post date:** [April 6, 2020, 4:34pm UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/2 "2020-04-06T16:34:28Z")

</div>

@thongnmtran - Sorry to tag you again but your previous advice has been so useful - thank you!

What are your thoughts on this query? In one of my tests I’m also trying to verify element visible on the clock, and battery icon when in battery saver mode which are both at the top of the screen above the Android notifications. In another test, I have an app that loads in full screen mode and some of the buttons are at the bottom of the screen where Katalon is unable to detect whilst running (uiautomater whilst recording/spy tool can interact with these elements fine)

---

<div class="post-metadata">

**Author:** ![thongnmtran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thongnmtran/32/9806_2.png) [@thongnmtran](https://forum.katalon.com/u/thongnmtran)\
**Post date:** [April 8, 2020, 3:25am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/3 "2020-04-08T03:25:00Z")

</div>

Hi @mohammad.arif,

Thanks for remembering me /=)

To press and hold on some button, you could do the same as the previous post, but change the method to **driver.“longPressKey”**.

```groovy
import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory
import io.appium.java_client.android.AndroidDriver
import io.appium.java_client.MobileElement
import io.appium.java_client.android.nativekey.AndroidKey
import io.appium.java_client.android.nativekey.KeyEvent

AndroidDriver<MobileElement> driver = MobileDriverFactory.getDriver()
driver.longPressKey(new KeyEvent(AndroidKey.HOME))

```

> If this not work, It could be because of not holding long enough. In that case, you could try for some other keys like **AndroidKey.POWER** to see if this method really does something different.

---

<div class="post-metadata">

**Author:** ![mohammad.arif](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mohammad.arif](https://forum.katalon.com/u/mohammad.arif)\
**Post date:** [April 8, 2020, 11:07pm UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/4 "2020-04-08T23:07:25Z")

</div>

@thongnmtran Thank you very much, I’ll try this out.

---

<div class="post-metadata">

**Author:** ![ngeorge](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ngeorge/32/16103_2.png) [@ngeorge](https://forum.katalon.com/u/ngeorge)\
**Post date:** [December 14, 2020, 11:13am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/5 "2020-12-14T11:13:44Z")

</div>

I am also having similar issue while trying to run the test on Pixel 4 and Pixel 4 XL with Android 11 and API 30. But this error is not happening on Pixel 3a or Pixel 3 simulator. Same error is observed on real device Samsung Galaxy S20FE. When I tried to device width and height the Kalaton is showing different size than the actual device size. Please let me know if anyone have a solution or workaround for this.

Thank you,  
NG

`=============== ROOT CAUSE =====================

# For trouble shooting, please visit: [https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html](https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html)

12-14-2020 10:35:35 AM tap(findTestObject(“Object Repository/PetSafe PageObjects/User Home Page/Scoop Free/Scoop Free - SETTINGS”), 3, CONTINUE\_ON\_FAILURE)

Elapsed time: 3.765s

Failed to tap on element ‘Object Repository/PetSafe PageObjects/User Home Page/Scoop Free/Scoop Free - SETTINGS’ (Root cause: org.openqa.selenium.InvalidArgumentException: Coordinate [x=1158.0, y=2793.0] is outside of element rect: [0,0][1440,2701]  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘Ithelps-MacBook-Pro.local’, ip: ‘fe80:0:0:0:1c07:f32e:beb9:a5ad%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.16’, java.version: ‘1.8.0\_181’  
Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriver  
Capabilities {app: /Users/ngeo091420/Desktop/K…, appPackage: net.petsafe.platform, autoGrantPermissions: true, automationName: uiautomator2, chromedriverPort: 53985, databaseEnabled: false, desired: {app: /Users/ngeo091420/Desktop/K…, autoGrantPermissions: true, automationName: uiautomator2, chromedriverPort: 53985, deviceId: , deviceName: emulator-5554 (sdk\_gphone\_x…, fullReset: false, newCommandTimeout: 1800, noReset: true, platform: ANDROID, platformName: android, platformVersion: 11, systemPort: 53983, udid: emulator-5554}, deviceApiLevel: 30, deviceId: , deviceManufacturer: Google, deviceModel: sdk\_gphone\_x86\_arm, deviceName: emulator-5554, deviceScreenDensity: 560, deviceScreenSize: 1440x3040, deviceUDID: emulator-5554, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 1800, noReset: true, pixelRatio: 3.5, platform: ANDROID, platformName: Android, platformVersion: 11, statBarHeight: 172, systemPort: 53983, takesScreenshot: true, udid: emulator-5554, viewportRect: {height: 2529, left: 0, top: 172, width: 1440}, warnings: {}, webStorageEnabled: false}  
Session ID: cc7efa5c-7ba3-413e-88a2-96ff437c8e71  
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.android.AndroidDriver.execute(AndroidDriver.java:1)  
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.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.keyword.builtin.TapKeyword$\_tap\_closure1.doCall(TapKeyword.groovy:84)  
at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword$\_tap\_closure1.call(TapKeyword.groovy)  
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)  
at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.tap(TapKeyword.groovy:86)  
at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.execute(TapKeyword.groovy:68)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.tap(MobileBuiltInKeywords.groovy:563)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$tap$6.call(Unknown Source)  
at ScoopFree.scoopFreeSettings(ScoopFree:123)  
at Script1607680915236$scoopFreeSettings.callCurrent(Unknown Source)  
at ScoopFree.scoopFree(ScoopFree:73)  
at ScoopFree.run(ScoopFree:26)  
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:339)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)  
at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$\_callTestCase\_closure1.doCall(CallTestCaseKeyword.groovy:59)  
at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword$\_callTestCase\_closure1.call(CallTestCaseKeyword.groovy)  
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)  
at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.callTestCase(CallTestCaseKeyword.groovy:81)  
at com.kms.katalon.core.keyword.builtin.CallTestCaseKeyword.execute(CallTestCaseKeyword.groovy:44)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)  
at com.kms.katalon.core.keyword.BuiltinKeywords.callTestCase(BuiltinKeywords.groovy:334)  
at Product Testing.findproduct(Product Testing:76)  
at Product Testing.run(Product Testing:37)  
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:339)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1607942101068.run(TempTestCase1607942101068.groovy:25)  
)`

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [December 14, 2020, 2:11pm UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/6 "2020-12-14T14:11:57Z")

</div>

Hi @ngeorge,

It’s because your element is not in the current viewport. You can add [Scroll To Text](https://docs.katalon.com/katalon-studio/docs/mobile-scroll-to-text.html#example) keyword before clicking on the object.

```auto
Mobile.scrollToText('Text of element')
Mobile.tap(findTestObject(“Object Repository/PetSafe PageObjects/User Home Page/Scoop Free/Scoop Free - SETTINGS”), 3, CONTINUE_ON_FAILURE)

```

---

<div class="post-metadata">

**Author:** ![ngeorge](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ngeorge/32/16103_2.png) [@ngeorge](https://forum.katalon.com/u/ngeorge)\
**Post date:** [December 15, 2020, 10:48am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/7 "2020-12-15T10:48:56Z")

</div>

Thank you @duyluong. I tried adding scrollToText. But same error is shown

```
=============== ROOT CAUSE =====================
Caused by: org.openqa.selenium.InvalidArgumentException: Coordinate [x=864.0, y=2086.0] is outside of element rect: [0,0][1080,1977]

For trouble shooting, please visit: https://docs.katalon.com/katalon-studio/docs/troubleshoot-common-execution-exceptions-web-test.html
================================================

12-15-2020 11:16:42 AM Test Cases/Test testcases/Select Product

Elapsed time: 25.974s

Test Cases/Test testcases/Select Product FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Failed to tap on element 'Object Repository/PetSafe PageObjects/User Home Page/Scoop Free/Scoop Free - SETTINGS' (Root cause: org.openqa.selenium.InvalidArgumentException: Coordinate [x=864.0, y=2086.0] is outside of element rect: [0,0][1080,1977]
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Ithelps-MacBook-Pro.local', ip: 'fe80:0:0:0:1c07:f32e:beb9:a5ad%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_181'
Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriver
Capabilities {app: /Users/ngeo091420/Desktop/K..., appPackage: net.petsafe.platform, autoGrantPermissions: true, automationName: uiautomator2, chromedriverPort: 64666, databaseEnabled: false, desired: {app: /Users/ngeo091420/Desktop/K..., autoGrantPermissions: true, automationName: uiautomator2, chromedriverPort: 64666, deviceId: , deviceName: emulator-5554 (sdk_gphone_x..., fullReset: false, newCommandTimeout: 1800, noReset: true, platform: ANDROID, platformName: android, platformVersion: 11, systemPort: 64664, udid: emulator-5554}, deviceApiLevel: 30, deviceId: , deviceManufacturer: Google, deviceModel: sdk_gphone_x86, deviceName: emulator-5554, deviceScreenDensity: 440, deviceScreenSize: 1080x2280, deviceUDID: emulator-5554, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 1800, noReset: true, pixelRatio: 2.75, platform: ANDROID, platformName: Android, platformVersion: 11, statBarHeight: 135, systemPort: 64664, takesScreenshot: true, udid: emulator-5554, viewportRect: {height: 1842, left: 0, top: 135, width: 1080}, warnings: {}, webStorageEnabled: false}
Session ID: a9a04f77-b955-4eb4-a99a-453b0bec5eec
	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.android.AndroidDriver.execute(AndroidDriver.java:1)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.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.keyword.builtin.TapKeyword$_tap_closure1.doCall(TapKeyword.groovy:84)
	at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword$_tap_closure1.call(TapKeyword.groovy)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
	at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.tap(TapKeyword.groovy:86)
	at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.execute(TapKeyword.groovy:68)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.tap(MobileBuiltInKeywords.groovy:577)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$tap$3.call(Unknown Source)
	at Select Product.scoopFree(Select Product:99)
	at Select Product.findproduct(Select Product:81)
	at Select Product.run(Select Product:40)
	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:339)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
	at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
	at TempTestCase1608031001119.run(TempTestCase1608031001119.groovy:25)
)
	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:50)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)
	at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.tap(TapKeyword.groovy:86)
	at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword.execute(TapKeyword.groovy:68)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.tap(MobileBuiltInKeywords.groovy:577)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$tap$3.call(Unknown Source)
	at Select Product.scoopFree(Select Product:99)
	at Select Product.findproduct(Select Product:81)
	at Select Product.run(Select Product:40)
	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:339)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
	at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
	at TempTestCase1608031001119.run(TempTestCase1608031001119.groovy:25)
Caused by: org.openqa.selenium.InvalidArgumentException: Coordinate [x=864.0, y=2086.0] is outside of element rect: [0,0][1080,1977]
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Ithelps-MacBook-Pro.local', ip: 'fe80:0:0:0:1c07:f32e:beb9:a5ad%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_181'
Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriver
Capabilities {app: /Users/ngeo091420/Desktop/K..., appPackage: net.petsafe.platform, autoGrantPermissions: true, automationName: uiautomator2, chromedriverPort: 64666, databaseEnabled: false, desired: {app: /Users/ngeo091420/Desktop/K..., autoGrantPermissions: true, automationName: uiautomator2, chromedriverPort: 64666, deviceId: , deviceName: emulator-5554 (sdk_gphone_x..., fullReset: false, newCommandTimeout: 1800, noReset: true, platform: ANDROID, platformName: android, platformVersion: 11, systemPort: 64664, udid: emulator-5554}, deviceApiLevel: 30, deviceId: , deviceManufacturer: Google, deviceModel: sdk_gphone_x86, deviceName: emulator-5554, deviceScreenDensity: 440, deviceScreenSize: 1080x2280, deviceUDID: emulator-5554, fullReset: false, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, newCommandTimeout: 1800, noReset: true, pixelRatio: 2.75, platform: ANDROID, platformName: Android, platformVersion: 11, statBarHeight: 135, systemPort: 64664, takesScreenshot: true, udid: emulator-5554, viewportRect: {height: 1842, left: 0, top: 135, width: 1080}, warnings: {}, webStorageEnabled: false}
Session ID: a9a04f77-b955-4eb4-a99a-453b0bec5eec
	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.android.AndroidDriver.execute(AndroidDriver.java:1)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.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.keyword.builtin.TapKeyword$_tap_closure1.doCall(TapKeyword.groovy:84)
	at com.kms.katalon.core.mobile.keyword.builtin.TapKeyword$_tap_closure1.call(TapKeyword.groovy)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
	... 19 more
```

---

<div class="post-metadata">

**Author:** ![we.ayt](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@we.ayt](https://forum.katalon.com/u/we.ayt)\
**Post date:** [December 25, 2020, 3:49am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/8 "2020-12-25T03:49:33Z")

</div>

Is it solved?

---

<div class="post-metadata">

**Author:** ![ngeorge](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ngeorge/32/16103_2.png) [@ngeorge](https://forum.katalon.com/u/ngeorge)\
**Post date:** [January 4, 2021, 1:52pm UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/9 "2021-01-04T13:52:21Z")

</div>

@we.ayt No. I am still having the issue.

---

<div class="post-metadata">

**Author:** ![we.ayt](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@we.ayt](https://forum.katalon.com/u/we.ayt)\
**Post date:** [January 6, 2021, 12:17am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/10 "2021-01-06T00:17:46Z")

</div>

> [@mohammad.arif](#):
>
> Coordinate [x=540.0, y=2100.0] is outside of element rect

There was not this problem on windows system,but It happened on the MacOS system.

---

<div class="post-metadata">

**Author:** ![ngeorge](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ngeorge/32/16103_2.png) [@ngeorge](https://forum.katalon.com/u/ngeorge)\
**Post date:** [January 6, 2021, 10:44am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/11 "2021-01-06T10:44:59Z")

</div>

@we.ayt Is there any work around for this issue on MAC. I can’t reach anyone at Katalon to ask for solution.

Thank you  
-NG

---

<div class="post-metadata">

**Author:** ![we.ayt](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@we.ayt](https://forum.katalon.com/u/we.ayt)\
**Post date:** [January 7, 2021, 8:43am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/12 "2021-01-07T08:43:30Z")

</div>

No,I did not have solution.

> I can’t reach anyone at Katalon to ask for solution.

Me too. 😓

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [January 7, 2021, 5:28pm UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/13 "2021-01-07T17:28:34Z")

</div>

@ngeorge, @we.ayt

You guys can try this script as a workaround:

```auto
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.mobile.helper.MobileElementCommonHelper
import io.appium.java_client.MobileElement

MobileElement element = MobileElementCommonHelper.findElement(findTestObject('element id'), 10)
element.click()

```

---

<div class="post-metadata">

**Author:** ![we.ayt](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@we.ayt](https://forum.katalon.com/u/we.ayt)\
**Post date:** [January 8, 2021, 10:02am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/14 "2021-01-08T10:02:37Z")

</div>

Thank you so much!It was effect! 😀

---

<div class="post-metadata">

**Author:** ![ngeorge](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ngeorge/32/16103_2.png) [@ngeorge](https://forum.katalon.com/u/ngeorge)\
**Post date:** [January 11, 2021, 10:59am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/15 "2021-01-11T10:59:53Z")

</div>

> [@duyluong](#):
>
> MobileElement element = MobileElementCommonHelper.findElement(findTestObject(‘element id’), 10) element.click()

Worked for me too!!!  
Thank you @duyluong

---

<div class="post-metadata">

**Author:** ![manohar.reddy](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manohar.reddy/32/16104_2.png) [@manohar.reddy](https://forum.katalon.com/u/manohar.reddy)\
**Post date:** [March 21, 2022, 4:53am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/16 "2022-03-21T04:53:49Z")

</div>

It worked for me on an element.

Can you please let me know how to use on multiple element?

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 23, 2022, 11:42am UTC](https://forum.katalon.com/t/press-and-hold-home-button-not-detected-by-katalon/37114/17 "2022-03-23T11:42:27Z")

</div>

@manohar.reddy

Please refer to this guide:

> **[How to Perform Multi-touch Actions in Mobile App](https://docs.katalon.com/katalon-studio/docs/handle_multi_touch_action.html#in-manual-mode)**
>
> Multi-Touch action appears often in gaming applications. We will use MultiTouch Tester app to demonstrate automation testing on this common behavior.
