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.
@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.
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
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?
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?
Thanks for the screenshot. That is odd that the spinner contents don’t show. A few questions:
Is this a native Android app or a hybrid app?
When you open the spinner, did you click the “Capture Object” button again to see if it updates with the new screen contents?
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?