Listview with scrollbar, how to down and identify some items matching with a patern ?

Asked by CSAV on 2019-11-14

 I'm completely new with Sikuli and would need your help...
I have a listview of 100 items but only 10 of them are show the other, scrolling down is required..
I have two questions :
How to make Sikuli running a certain set of action for each and every item complying with the condition : contains "#" ?
How to make Sikuli scrolling down and ensure all the 100 items are seen by Sikuli ?


Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

ok, that is tricky and needs some basic scripting experience (if..else, looping, create regions, read text).

The workflow depends on the way the list can be accessed:
- only with mouse (select and scroll)
- additionally using the direction keys

The base is to define a box (Region), that contains one list entry.
then you move down the box through the list.
This means, you once have to evaluate the geometrics of the list (you can use the toolbar buttons)
Then you can get the contained text using Region.text() and make your decisions.

If you are ready with some trials, come back with your questions.

You might also send me (sikulix---at---outlook---dot---com) your script and a screenshot of the list (zipped together), so I can give you more concrete help.

I am willing to help you (normally I do not write scripts for others), because this might be an intersting showcase for SikuliX.

Can you help with this problem?

Provide an answer of your own, or ask CSAV for more information if necessary.

To post a message you must log in.