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

RaiMan proposed the following answer:
@Zeks
-- Abstract away interface elements such as buttons and table cells
again good point.
to better support such solutions is on the list for version 2

... but already 1.1.0 will have some abstracting features like
findAny(imageList) and findBest().

the button problem could the be solved like that:

btnOn = "btnOn.png"
btnOff = "btnOff.png"

imgList = (btnOn, btnOff)

m = someRegion.findBest(imgList)
m.highlight(1)
if m.getIndex() == 0:
    print "*** should be ON"
else:
    print "*** should be OFF"

findBest() is already available in the latest build

internally the findops are threaded and hence run in parallel (timing
advantage with 3 and more images)

You received this question notification because you are a member of
Sikuli Drivers, which 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

Reply via email to