sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50050
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.