# Can't tap on android.widget button while testing Android app

**URL:** <https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [August 8, 2020, 8:53pm UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301 "2020-08-08T20:53:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sifat19eee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sifat19eee/32/13737_2.png) [@sifat19eee](https://forum.katalon.com/u/sifat19eee)\
**Post date:** [August 8, 2020, 8:53pm UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301/1 "2020-08-08T20:53:57Z")

</div>

I having this problem while login into my native app. The login window is opening in webview. Katalon studio object spy can detect the button marked red in the following image but cant tap on it. Though tapping is working for other buttons.

 ![index](https://europe1.discourse-cdn.com/katalon/original/2X/d/d6ad8eff26588696dff84828f19e40eaad2e379b.jpeg)

Object Spy for **continue** button:

 ![111](https://europe1.discourse-cdn.com/katalon/original/2X/9/9ad658acd32193c2a2cfad5f71e14fddd788938d.png)

xpath: //hierarchy/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.view.ViewGroup[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[2]/android.webkit.WebView[1]/android.view.View[1]/android.view.View[1]/android.view.View[2]/android.widget.Button[2]

Object Spy for **Not sign in Manually?** button:  
xpath: //hierarchy/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.view.ViewGroup[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[2]/android.webkit.WebView[1]/android.view.View[1]/android.view.View[1]/android.view.View[2]/android.widget.Button[3]

Script:

indent preformatted text by 4 spaces

> Blockquote  
> Mobile.startExistingApplication(‘com.portonics.mygp’, FailureHandling.STOP\_ON\_FAILURE)

```
Mobile.tap(findTestObject('Object Repository/android.widget.TextView - Sign in with GP ID'), 0)

Mobile.delay(3, FailureHandling.STOP_ON_FAILURE)

Mobile.tap(findTestObject('Object Repository/android.widget.Button - Continue (1)'), 3)

```

> Blockquote

Can you guyz plz help on this?

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [August 10, 2020, 3:43am UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301/2 "2020-08-10T03:43:29Z")

</div>



---

<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:** [August 10, 2020, 3:35pm UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301/3 "2020-08-10T15:35:47Z")

</div>

@sifat19eee

Have you tried with **tapAndHold** keyword yet?

> **[\[Mobile\] Tap And Hold](https://docs.katalon.com/katalon-studio/docs/mobile-tap-and-hold.html)**
>
> Description Tap and hold on a mobile element for a duration Parameters Parameter Parameter Type Mandatory Description to TestObject  Required Represent a mobile element. duration Number  Required Duration (in seconds)...

---

<div class="post-metadata">

**Author:** ![xiaoming](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xiaoming/32/16104_2.png) [@xiaoming](https://forum.katalon.com/u/xiaoming)\
**Post date:** [November 23, 2021, 12:16pm UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301/4 "2021-11-23T12:16:47Z")

</div>

hi， i have same problem !  
i am use flutter develop app , and put icon button in my form .  
and i have try tap and tapAndHold two actions. and it’s not work.

---

<div class="post-metadata">

**Author:** ![Tester](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/tester/32/23869_2.png) [@Tester](https://forum.katalon.com/u/Tester)\
**Post date:** [October 13, 2023, 4:02am UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301/5 "2023-10-13T04:02:25Z")

</div>

Hi,  
I am facing like this problem. Is there any update for this issue?

---

<div class="post-metadata">

**Author:** ![bharathi.a](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/bharathi.a/32/24695_2.png) [@bharathi.a](https://forum.katalon.com/u/bharathi.a)\
**Post date:** [October 13, 2023, 6:43am UTC](https://forum.katalon.com/t/cant-tap-on-android-widget-button-while-testing-android-app/46301/6 "2023-10-13T06:43:26Z")

</div>

@sifat19eee  
can you share the object that you saved in your object repository for the continue button?

inside the object you saved in your object repository, you will have the Name Condition and Value and check box which is there in the attached snapshot.

Disable all the checkboxes and enable the checkbox which contains the text **Continue**

and try again and share the result

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/7/1/710a1b16e1a641c0852c8651c8d4781b1f4f35b3.png)
