Find an image one by one if it is available multiple times in the screen

Asked by Ruwan Pushpakumara

Hi,

I am trying to automate a scenario where a UI has multiple records. Each record has status like Processed or Failed. for an ex;

record 1 processed
record 2 processed
record 3 Failed

i am trying to automate a test case where system processes multiple records and the status of the test case depends on the status of the each record. So i want to evaluate status of each record one by one. The status of records is a label in a web application. Appreciate someone could help me find a solution for this.

Thanks
Rpk

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Roman Podolyan
Solved:
Last query:
Last reply:
Revision history for this message
Best Roman Podolyan (podolyan-roman) said :
#1

Any screenshots?
What can you say about labels layout?
You can always restrict a search to the smaller region(s), and use Region.findAll (http://doc.sikuli.org/region.html#Region.findAll).
So I think that the task is possible if you figure out how to calculate =smaller regions= out of records layout, e.g. small_region_1 for Record 1 , small_region_2 for record 2 and so on.

Revision history for this message
Ruwan Pushpakumara (belikeharry) said :
#2

Thanks for the update Roman.

let me try what you suggested and if i get into trouble, I'll let you know.

Revision history for this message
Ruwan Pushpakumara (belikeharry) said :
#3

Thanks Roman Podolyan, that solved my question.