sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42746
[Question #642378]: Differentiating among identical icons and iterating among those icons
New question #642378 on Sikuli:
https://answers.launchpad.net/sikuli/+question/642378
Hi
I have a use case where I have to differentiate among 'n' number of identical icons which are separated with equal spaces vertically and they are the child nodes from a parent node. So by differentiating I mean,
1. I should be able to go to 'Icon1' and then perform an activity on on the Icon which directs me to some other page..
2.if I dont find my requirement in the redirected page ,then come back to the page of icons, get to the 'Icon2' which is right below Icon1, and perform the first step and so on..
3.At any point of time if my requirement is met in the redirected page, I have to close the application.
The challenges I am seeing are:
* The Icons are identical, so sikuli is stuck in a loop ending up in taking action on the same icon repeatedly
*The n number of icons can vary and there is no proper pattern where we can make out that at a particular icon the success(The requirements meeting in redirected page) is seen.
Questions I have in mind to implement this scenario:
*Can we get the count of the number of identical icons and then iterate among these icons to get?
* Can I get the space(number of pixels) between successive icons (or) space between the first icon and the last icon?
Please tell me how I can implement this particular scenario with sikuli r930
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.