← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #211636]: Image test works on SikuliIDE but not with Java lib

 

Question #211636 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/211636

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, I tested on the Google start page.

Even an image, that contains the whole web page content (but nothing of
the surrounding browser window frame or bars or whatever), I always get
a similarity score of 1.0

So I guess your image contains part of the browser specific surrounding
window stuff. That is not recommended.

So if you want you can send me the image you are using to my mail at
https://launchpad.net/~raimund-hocke and I can have a look at it and
test with Chrome.

If you use images of application specific window parts like button bars, menus, frames, ... their appearance in many cases depends on wether they have focus or not - and that might be a difference between running in IDE and running from command line:
- in IDE, since it makes its window invisible before running the script, Chrome might still have the focus from actions before
- from command line, the java process gets focus and comes to foreground steeling the focus from Chrome

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.