← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676872]: Differentiate identical buttons

 

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

TestMechanic proposed the following answer:
Here is ready for use method:

def GetImage_X_sort(img, n):
    print ("Look X sorted elements like " + str(img) + " and take number " + str(n))
    res=findAll(img)
    sorted_img = sorted(res, key=lambda m:m.x)
    sorted_img[n-1].highlight(2)
    return sorted_img[n-1]

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.