How to do screen comparison using sikuli ide?

Asked by Abhinav Kumar

I am new to testing.I want to compare the screen for the same application on two diff browsers and want the difference as result.How can i do it using sikuli ide?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Asheru (asheru93) said :
#1

So you want to:
- navigate with browser A
-do some actions
-take a screenshot with sikuli
-store it in a constant like resultBrowserA = myScreenshot.png

- do the same thing for browserB
-resultBrowserB = myScreenshot2.png

compare IF resultBrowserA = resultBrowserB ?

IF you want something similar I guess you can use FInder class from sikuli. See- http://doc.sikuli.org/finder.html

Revision history for this message
Abhinav Kumar (abhiknav) said :
#2

Thanks Asheru, that solved my question.

Revision history for this message
Abhinav Kumar (abhiknav) said :
#3

Thanks for helping...I had one more query.Is there anyway I can find out ,exactly what are the difference between the two screen images?

Revision history for this message
Asheru (asheru93) said :
#4

Personally I don't know exactly but I don't think this is possible from sikuli. I might be wrong still.

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

--- can find out ,exactly what are the difference
look here:
https://sikulix-2014.readthedocs.io/en/latest/finder.html#Finder.findChanges

Can you help with this problem?

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

To post a message you must log in.