sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54729
Re: [Question #689581]: assert(function name)
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.