How to identify a image from image collection

Asked by Bennil on 2018-10-22

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-22
Last reply:
2018-10-22
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.

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.