setFindFailedResponse(PROMPT)

Asked by fernando gandini

Hi folks,

im having a problem with the setFindFailedResponse(PROMPT)...actually i think is a bug.

here is my simplified code:

setThrowException(True)
setFindFailedResponse(PROMPT)
if find(Pattern("test.png").similar(0.97)):
    print 'found'
else:
    print 'not found'

so, when Sikuli not found the image, the prompt appears with no image.....but only when i set the ".similar(x)"...other way, it appears normally

thanks

Question information

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

yes, you should post a bug

Can you help with this problem?

Provide an answer of your own, or ask fernando gandini for more information if necessary.

To post a message you must log in.