# Not able to capture drop-down menu options using Mobile Object Spy

**URL:** <https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [February 21, 2018, 7:08am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466 "2018-02-21T07:08:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saranya2](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Saranya2](https://forum.katalon.com/u/Saranya2)\
**Post date:** [February 21, 2018, 7:08am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/1 "2018-02-21T07:08:17Z")

</div>

I’m trying to capture menu options of ‘Leave Type’ drop-down. But its capturing the fields on the back of menu options.

For instance, refer screenshot 2, when I try to capture menu option ‘other’, it’s capturing the field behind it (‘No. of days’, refer screenshot 1) instead.

Not able to capture the options in the drop-down menu.

Thanks & Regards,  
Saranya.S

![](https://s3.amazonaws.com/katalon-forum/editor/4j/a9dfyigo52kr.png "Image: https://s3.amazonaws.com/katalon-forum/editor/4j/a9dfyigo52kr.png")

![](https://s3.amazonaws.com/katalon-forum/editor/gw/5h3u5i3nod0f.png "Image: https://s3.amazonaws.com/katalon-forum/editor/gw/5h3u5i3nod0f.png")

[Picture5.png](https://s3.amazonaws.com/katalon-forum/editor/4j/a9dfyigo52kr.png)

[Picture 6.png](https://s3.amazonaws.com/katalon-forum/editor/gw/5h3u5i3nod0f.png)

---

<div class="post-metadata">

**Author:** ![Mathivanan\_C](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mathivanan\_C](https://forum.katalon.com/u/Mathivanan_C)\
**Post date:** [November 23, 2018, 11:47am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/2 "2018-11-23T11:47:54Z")

</div>

I’m facing the Same issue. Katalon Team, please respond

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [November 27, 2018, 5:13am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/3 "2018-11-27T05:13:29Z")

</div>

Hi Mathivanan,

Could you please share some screenshots of what you’re seeing in the Mobile Object Spy similar to what Saranya shared?

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![Mathivanan\_C](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mathivanan\_C](https://forum.katalon.com/u/Mathivanan_C)\
**Post date:** [November 29, 2018, 11:45am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/4 "2018-11-29T11:45:16Z")

</div>

@Chris Trevarthen  
Thanks for your reply. Please refer the attached image. Here i am going to choose an option “Ahmedabad” by entering “a” at City text box. But unfortunately Katalon does not capture any objects(Left side) for the list of Cities displayed at the right side. Please suggest me how to handle this type of scenario.

Thanks,  
Mathivanan

 ![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/ea96ff14dccf1c18a48daccfee49d78919b37b74.png)

[download.png](https://forum.katalon.com/uploads/short-url/xtheEKa3dkmoghMQUWEgdhXNFmQ.png)

---

<div class="post-metadata">

**Author:** ![Mathivanan\_C](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Mathivanan\_C](https://forum.katalon.com/u/Mathivanan_C)\
**Post date:** [December 7, 2018, 11:31am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/5 "2018-12-07T11:31:55Z")

</div>

Hello… Anybody there?

I can able to select an option by entering the complete text of which i need to select in the “City” field and tapping on the first option using (x,y) coordinates. Please suggest me if you find any other solutions. Thanks

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [December 10, 2018, 2:34am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/6 "2018-12-10T02:34:58Z")

</div>

Hi Mathivanan,

Thanks for sharing the screenshot and your workaround, which I think is a good solution considering the limitations of interacting with spinners/drop-downs.

Out of curiosity, from your screenshot of the “All Objects” tree, it looks like there are 2 TextViews within the Spinner-\>LinearLayout hierarchy. If you inspect those TextViews, what do they show?

Finally, I’ve been working on an open source library that you can use in your Katalon testing projects. It provides some convenience methods for working with things like drop-down menus. It might be of some help to you, specifically this part: [GitHub - detroit-labs/katalon-mobile-util: Library of utilities to make mobile UI testing in Katalon Studio easier](https://github.com/detroit-labs/katalon-mobile-util#using-a-textfield-with-a-picker-list)

For info on how to include third party libraries into your tests, you can see the Katalon docs:

[https://docs.katalon.com/katalon-studio/tutorials/import\_java\_library.html](https://docs.katalon.com/katalon-studio/tutorials/import_java_library.html)

– Chris

---

<div class="post-metadata">

**Author:** ![jose-miguel.perez-ro](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jose-miguel.perez-ro](https://forum.katalon.com/u/jose-miguel.perez-ro)\
**Post date:** [January 27, 2020, 3:20pm UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/7 "2020-01-27T15:20:32Z")

</div>

Any updates on this matter? My spinner’s options aren’t showing and I’m not able to tap then other than using the tapAtPosition() keyword.

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [January 28, 2020, 2:02am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/8 "2020-01-28T02:02:09Z")

</div>

Hi @jose-miguel.perez-ro

Can you share a screenshot of what you’re seeing when you try to use Spy Mobile in Katalon? What are the properties of the drop down list that Katalon detects?

— Chris

---

<div class="post-metadata">

**Author:** ![jose-miguel.perez-ro](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jose-miguel.perez-ro](https://forum.katalon.com/u/jose-miguel.perez-ro)\
**Post date:** [January 28, 2020, 7:15am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/9 "2020-01-28T07:15:31Z")

</div>

![image](https://europe1.discourse-cdn.com/katalon/original/2X/d/db1380ced52f49966a22c37d4a08f4e9ccd3a76b.png)

Here it is. As you can see, the spinner is visible, but none of it’s options are. Any advise?

Regards,  
JM

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [January 29, 2020, 4:22am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/10 "2020-01-29T04:22:44Z")

</div>

Hi @jose-miguel.perez-ro

Thanks for the screenshot. That is odd that the spinner contents don’t show. A few questions:

1. Is this a native Android app or a hybrid app?
2. When you open the spinner, did you click the “Capture Object” button again to see if it updates with the new screen contents?
3. Sometimes the spinner contents are rendered in a new view, but not in line with the form field for the spinner - is it possible that the contents of the spinner are shown if you scroll down in the list of All Objects?

—Chris

---

<div class="post-metadata">

**Author:** ![jose-miguel.perez-ro](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jose-miguel.perez-ro](https://forum.katalon.com/u/jose-miguel.perez-ro)\
**Post date:** [January 30, 2020, 7:57am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/11 "2020-01-30T07:57:06Z")

</div>

Hi Chris,

Thanks for your responses.

1- This in a native Android App as far as I understand.

2- I’ve already tried to re-Capture the objects but without seeing any relevant updates.

3- Nope, they’re not there.

Regards,  
JM

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [February 10, 2020, 3:47am UTC](https://forum.katalon.com/t/not-able-to-capture-drop-down-menu-options-using-mobile-object-spy/9466/12 "2020-02-10T03:47:30Z")

</div>

Hi @jose-miguel.perez-ro,

I’ve been trying to simulate your issue, but I haven’t had any luck. Have you tried with an emulator or device running an earlier version of Android?

I remember other people having issues interacting with Android spinners in the past, so maybe this post will help:

> [@Cannot select date from DatePicker Dialog Android](http://forum.katalon.com/t/cannot-select-date-from-datepicker-dialog-android/14274/7):
>
> Hi @maina.eric, Here’s a couple more things we could try: Another try at MobileBuiltInKeywords.sendKeys() In your test, make sure you tap on the text field for the date. Then try to use MobileBuiltInKeywords.sendKeys("06/04/2019") to see if it changes the date in the field. You might need to play around with the text a bit in case it breaks on the “/”. Log what’s on the screen I’m curious what Katalon and Appium think are on the screen at the time the date dropdown is open. If you want to se…

– Chris
