Find images with 2 colors

Asked by Daniel de Winter


The application I'm testing comes in two colors (depending if it's the Test- or Acceptance environment).

Currently I can't use a single picture to identify both environments.

For example: part of login screen of the application:

I preferably don't want to do something like this:
while not ((has.pic1) or (has.pic2)):
...where you have to record pictures of both colors...

Is there a way in order to have only ONE picture to identify both situations?

Kind regards,

Question information

English Edit question
SikuliX Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :

You need 2 image sets for the images, that differ.

Once at the beginning of the script check the situation and select the image set using the image path features.

Can you help with this problem?

Provide an answer of your own, or ask Daniel de Winter for more information if necessary.

To post a message you must log in.