compare stored image with running application

Asked by G

Hi,

I have a image stored. I want to find that image in running application page.
Can anybody tell me the way?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

The stored image must be a .png

--1. use the load image button in IDE
the middle one of the 3 left side capture buttons.

--2. use absolute path
find("absolute-path-to-image.png")

Revision history for this message
G (geeta-mandhare) said :
#2

I am running Sikuli script in Java. The image stored is .png and is part of a web page. when I run a web app throgh sikuli that .png image appears. I want to verify that the stored image and the image in running web app is same.

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

In Java you have to use the second version adapted to Java (basic solution):

s.find("absolute-path-to-image.png");

where s is a Screen object.

See the docs: http://sikuli.org/docx/faq/030-java-dev.html

If you look through the docs, the examples and this question board, you will find more possibilities.

Revision history for this message
G (geeta-mandhare) said :
#4

Thanks RaiMan, that solved my question.