← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #247044]: how to get the last element of findAll

 

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

    Status: Solved => Open

bilel is still having a problem:
elements = reg.findAll("checkbox.png")
last_element = sorted(elements, key=lambda x:x.y)[-1]

Until yesterday this worked as expected, which means the right last
element is returned, but sometimes it returns another element which
obviously is not the last one in the list.

How can I make sure I'm getting the last one?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.