How to identify a image from image collection

Asked by Bennil

Problem:

I have a registration page where the final submit button background will displayed in different colors after each registration. so what i did is i have captured different colored sumbit button inside a folders.and now i want to click the button even if any one of the submit button stored inside the folder gets displayed on the screen. is there any way to check if any one of the image inside the folder is matching on the screen.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1
Revision history for this message
Bennil (mbennill) said :
#2

Thanks....Got a solution........can i specify a folder name as a parameter in findBest() method where the folder contains collection of images.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

No, sorry currently not - but good idea.

But you can do:
- add the folder to the image path
- create a List myImages with the relevant filenames from the folder
- use findBestList(myImages)

With 1.1.4 you might try with transparency, to ignore the colored pixels.

Can you help with this problem?

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

To post a message you must log in.