Web page image matching, thumbnail similarity

Asked by can

I would like to know that the same web in different browsers can not match.
The capture of IE browser cann't match the seem like a similar area in Firefox or chrome.
What factors affect the Sikuli? the pixel, the brightness or others.

Whether there is a way to do what is compatible with different browsers?

Express my thanks to the answer

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
can
Solved:
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

Rather than looking for a way to resolve by SikuliX, looking for a common way to resolve the problem , i recommed to use selenium.
SikuliX is not suitable for the multi browser testing .
It is important that we take advantage of the characteristics of the tool when we use the tool.
So in case of multi browser testing, you can use Selenium-WebDriver instead of SikuliX.
Only use load(), we can use Selenium-WebDriver API from SikuliX.

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

yes, it is all about pixels and how they are rendered by the different browser engines to the screen, which finally is relevant for the usage of SikuliX as a visual tool.

Either follow the suggestion of masuo in comment #1 or use different image sets for different browsers where needed.

Revision history for this message
can (ting) said :
#3

At the same computer resolution
the buttons on the web are fixed
When the maximum and non maximum, the results of the Sikuli recognition, the color of the similarity is not the same
What is the cause?

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

--- At the same computer resolution the buttons on the web are fixed
... yes, this might look so for you as a human looking at the screen, but for SikuliX, each pixel counts, that is different.

After being sure, you have understood this:
http://sikulix-2014.readthedocs.org/en/latest/basicinfo.html#sikulix-how-does-it-find-images-on-the-screen

you have to evaluate screenshots of the different situations in an image viewer at a magnification level, where you can see distinct pixels.

Usually the problem can be found in surrounding background or at some edges, that are rendered slightly differently.

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

... and with buttons a usual problem might be the use of different fonts for the text inlet.

Revision history for this message
can (ting) said :
#6

Thanks RaiMan.
Maybe I've got some ideas.