← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #685879]: Listview with scrollbar, how to down and identify some items matching with a patern ?

 

Question #685879 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/685879

    Status: Open => Answered

RaiMan proposed the following answer:
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.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.