UI interaction, select from picker with options

dsnz

Well-known member
hi,
I'm new to UI interaction techniques in MD
I have a screen where there is a picker with options (ie. when you click on the picker then opens a scrolling list of things)
it's this scrolling list that I find difficult to handle , ie how to scroll and select
furthermore the list does not start from same position always so the scrolling is not a fixed amount
I tried UI interaction, click, identify in app then I scrolled manually the picker and clicked on the desired selection but it does not work
how have you handled such a situation like mine ?
 

JA-Translator

Moderator
Me, either. I am also not good at the UI selection. That's a little difficult to handle.

I am still not sure of UI action.
However, have you tried "View ID"?
Every part has its own ID (item name).
Once you know the ID name, you can use the id name in the UI action.
 

dsnz

Well-known member
Me, either. I am also not good at the UI selection. That's a little difficult to handle.

I am still not sure of UI action.
However, have you tried "View ID"?
Every part has its own ID (item name).
Once you know the ID name, you can use the id name in the UI action.
I'd love to try the view ID method
but how do I find this ID ? 😊
 

Snurre

Well-known member
Y
I'd love to try the view ID method
but how do I find this ID ? 😊
You need to use 'Read screen content' first, and then in UI 'click' you choose 'View Id' and select the var where the content of read screen is, then you should be able to locate it
 

dsnz

Well-known member
Y

You need to use 'Read screen content' first, and then in UI 'click' you choose 'View Id' and select the var where the content of read screen is, then you should be able to locate it
interesting idea but does not lead to anything useful
what I get is

android:id/text1 => 64
android:id/text1$2 => 65
android:id/text1$3 => 66
android:id/text1$4 => 67

where (and very interestingly) the numbers 64,65,66,67 are the visible selections of the picker (they happen to be numbers in one of the pickers)

whatever the values displayed in the picker
the id(s) stay the same always

my idea to solve this UI interaction is by two gestures
- a big sweep up that will guarantee I get to the top of the list
- a very calculated sweep down that hopefully will bring me to the desired selection
- a final click

but doesn't seem so sure method..
 

JA-Translator

Moderator
You need to use 'Read screen content' first,

As @Snurre mentioned,

Use "Read Screen" and you can find the ID.
Once you run the following macro, the index name is the ID Name.

Once you find the ID, then You can use the ID in UI "ID Click" action.

How about this, @dnsz ?
I hope this can be a good help to get any good tip for you somehow. 😊

If it isn't useful for you, then soooorry... 😅



Screenshot_20220626_211219.png
 

Snurre

Well-known member
whatever the values displayed in the picker
the id(s) stay the same always
Strange

my idea to solve this UI interaction is by two gestures
- a big sweep up that will guarantee I get to the top of the list
- a very calculated sweep down that hopefully will bring me to the desired selection
- a final click

but doesn't seem so sure method.
Yeah, that's risky I think, good luck my friend 😉 I would love to hear if you find a solution cause I think it could be very usefull

But ok it was just a thougt
 

MacroDroidDev

Administrator
Staff member
In any given app the ids will typically be static identifiers where the UI is generally all fixed static views such as a login screen. However in something like a list of items the ids may well be dynamically created and could change on each run.
 
Top