Find images with 2 colors

Asked by Daniel de Winter

Hi,

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:
https://drive.google.com/file/d/1Mx1qfdno7oaonsP7BkxCy0Fv8YfavyxJ/view?usp=sharing

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,
Daniel

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

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.