# Unable to tap mobile object

**URL:** <https://forum.katalon.com/t/unable-to-tap-mobile-object/46244>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [August 7, 2020, 1:58am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244 "2020-08-07T01:58:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rie.ota](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rie.ota/32/20464_2.png) [@rie.ota](https://forum.katalon.com/u/rie.ota)\
**Post date:** [August 7, 2020, 1:58am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/1 "2020-08-07T01:58:20Z")

</div>

Hi all,

I’m creating Android mobile app testing.

`Mobile.tap(findTestObject('Object Repository/HSB/Login_button'), 30)`  
Above step shows it was success, but actually it doesn’t work (the button doesn’t be tapped)  
Adding delay after tis step doesn’t work.

I also tried `tapAndHold` command, but it doesn’t work too.

> [@Issue: Tap on mobile button passes but doesn't actually tap](http://forum.katalon.com/t/issue-tap-on-mobile-button-passes-but-doesnt-actually-tap/33250/4):
>
> Could you please little chang your code and add delay before tapping on the object, some times it will not sync along with that modify you tap and hold code like below Mobile.delay(5) tapAndHold(findTestObject(“MenuButtonsRECAPTURED\_JustATest/contactBTN”), 0, 5) Similar Issue I faced in iOS and solved it by adding Tap and Hold instead of Tap.

* * *

macOS Catalina 10.15.6  
Katalon Studio 7.6.2  
Android emulator ‘system-images;android-29;default;x86’ ‘Nexus 5’

* * *

any solution?

---

<div class="post-metadata">

**Author:** ![rie.ota](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rie.ota/32/20464_2.png) [@rie.ota](https://forum.katalon.com/u/rie.ota)\
**Post date:** [August 13, 2020, 6:43am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/2 "2020-08-13T06:43:09Z")

</div>

hmm… downgrading appium to 1.14.1 (from 1.18.0) seems to resolve this…

---

<div class="post-metadata">

**Author:** ![rie.ota](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rie.ota/32/20464_2.png) [@rie.ota](https://forum.katalon.com/u/rie.ota)\
**Post date:** [August 13, 2020, 6:44am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/3 "2020-08-13T06:44:10Z")

</div>

Anyway, it doesn’t seem to relate to Katalon. Close.

---

<div class="post-metadata">

**Author:** ![mhlthkr](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mhlthkr](https://forum.katalon.com/u/mhlthkr)\
**Post date:** [August 19, 2020, 8:51am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/4 "2020-08-19T08:51:03Z")

</div>

Hi All, I am facing same issue, while trying to tap on button on android app,

I tried this,

Mobile.tap(findTestObject('TCL/button\_object - ‘Text’), 0)

Also, tried to use tapAndHold method but it does not seems working

---

<div class="post-metadata">

**Author:** ![rie.ota](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rie.ota/32/20464_2.png) [@rie.ota](https://forum.katalon.com/u/rie.ota)\
**Post date:** [August 20, 2020, 12:01am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/5 "2020-08-20T00:01:45Z")

</div>

@mhlthkr  
Hi, did you try my solution?

> [@Unable to tap mobile object](http://forum.katalon.com/t/unable-to-tap-mobile-object/46244/2):
>
> hmm… downgrading appium to 1.14.1 (from 1.18.0) seems to resolve this…

I didn’t try with more later version, but at least appium 1.14.1 works for me.

---

<div class="post-metadata">

**Author:** ![thilakshan.balachand](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thilakshan.balachand/32/16104_2.png) [@thilakshan.balachand](https://forum.katalon.com/u/thilakshan.balachand)\
**Post date:** [October 3, 2022, 10:08am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/6 "2022-10-03T10:08:02Z")

</div>

i am facing the same issue in iOS automation on real device how to solve this issue

---

<div class="post-metadata">

**Author:** ![rie.ota](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rie.ota/32/20464_2.png) [@rie.ota](https://forum.katalon.com/u/rie.ota)\
**Post date:** [October 3, 2022, 11:40pm UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/7 "2022-10-03T23:40:07Z")

</div>

Hello, I usually use the following workarounds… Do any of these seem like a solution?

- `Mobile.doubleTap`
- `Mobile.tapAndHold`
- `Mobile.tapAtPosition`

---

<div class="post-metadata">

**Author:** ![thilakshan.balachand](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thilakshan.balachand/32/16104_2.png) [@thilakshan.balachand](https://forum.katalon.com/u/thilakshan.balachand)\
**Post date:** [October 4, 2022, 3:30am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/8 "2022-10-04T03:30:41Z")

</div>

what happen was there two objects with a same id so script cannot find a specific one

---

<div class="post-metadata">

**Author:** ![rie.ota](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rie.ota/32/20464_2.png) [@rie.ota](https://forum.katalon.com/u/rie.ota)\
**Post date:** [October 4, 2022, 5:54am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/9 "2022-10-04T05:54:38Z")

</div>

In the case of that pattern, I took the following approach

1. get the x-coordinate of the object you want to tap (either with the Spy function or with `Mobile.getElementLeftPosition`)
2. get the y-coordinate of another object at the same height as the object you want to tap.

```auto
top_position = Mobile.getElementTopPosition(findTestObject('Object Repository/HSB/label'), 5)
println top_position

Mobile.tapAtPosition(892, top_position)

```

This method cannot be used if there is not another object at the same height, but I hope this will spark some ideas.

---

<div class="post-metadata">

**Author:** ![monica.canziani](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monica.canziani/32/22419_2.png) [@monica.canziani](https://forum.katalon.com/u/monica.canziani)\
**Post date:** [November 8, 2022, 10:11am UTC](https://forum.katalon.com/t/unable-to-tap-mobile-object/46244/10 "2022-11-08T10:11:32Z")

</div>

Faced the same issue on iOS: tap (passes) but doesn’t actually tap.  
The object has a unique automation ID.

**Double Tap** worked for me.
