Question #689581 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689581
Status: Open => Answered
RaiMan proposed the following answer:
the function does not return a suitable value for assert:
def Enable(obj1,obj2):
m=findBest(obj1,obj2)
# m.getIndex(),m.getScore() # does not make sense
print(m.getIndex(),m.getScore())
if m.getIndex()==0:
print("Button is Enabled")
return True
else:
print("Button is not enabled.")
return false
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp