Sikuli does not finds control after some time or next day on same script with same application page

Asked by Sikulipro

When i create any script it works correctly, but if i try to run with Sikuli again after 2 or 3 hours or next day it does not works,

it shows following error

[error] Find Failed
and does not locate exact control,

then if i try to take the images again then it works, but again it does not work next day.
i am working Firefox 26 and chrome 32.0

Question information

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

Since the captured images with the script do not change over night ;-)
something seems to change in your environment.

Make sure you have optimal shots:
- as little background as possible
- concentrate on the key aspects.

If you want, you might send me a sample screenshot and a sample image, that does not work anymore, zipped together silently to mymail at https://launchpad.net/~raimund-hocke

Revision history for this message
Sikulipro (saindane-harshal) said :
#2

1391422775074.png
1391422786124.png

Revision history for this message
Sikulipro (saindane-harshal) said :
#3

I have some doubts,

does this affects with screen insulation, browser change i am still getting this problem whatever script i run before it does not find images 'sometime '.

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

Might be.

generally:
If a script, that was not changed in any aspect, does not run anymore suddenly, then it always has something to do with a changed environment against the situation, when the script ran successfully.

If the script acts on a webpage, then simply the use of a different browser might lead to crashes. This depends on how the webpage is setup and how the different rendering engines behave against the web content.
So there is a good chance that a script developed against Chrome works with Safari and other browsers using the webkit engine.
It might make problems with FireFox and IE and vice versa.

This should not be with modern web apps, but might be though, because Sikuli works on the pixel level. So differences "visible" for Sikuli, might not be obvious for the user looking at the screen.

--- about resolution:
as long as the image is shown in different resolutions with the same pixel content: no problem.
If the system and/or browser renders an image differently depending on different resolutions: big problems

Currently having these "big problems" is only solvable with different image sets for different situations.

Revision history for this message
Sikulipro (saindane-harshal) said :
#5

I got the problem, i understand if i find a text box and if there are multiple text box and our selection is just that text area,
now what i am doing i am taking the images with nearby label,text ...it should be unique.

thanks for your support indeed.