sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22600
Re: [Question #240245]: Sikuli with Flash GUI and postgresql question
Question #240245 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240245
Status: Open => Answered
RaiMan proposed the following answer:
if we are talking about the Python list:
vals = [1, 2, 3, 3, 3, 4, 5, 6, 9]
then you can do this
while True:
try:
vals.remove(3) # removes the left most 3
print "found", vals
# 1st: [1, 2, 3, 3, 4, 5, 6, 9]
# 2nd: [1, 2, 3, 4, 5, 6, 9]
# 3rd: [1, 2, 4, 5, 6, 9]
catch:
# no 3 in vals
print "not found", vals
# 4th: [1, 2, 4, 5, 6, 9]
break
... but if you are talking about finding the 3 visually in an opened drop down list, then this is possible, but very complex:
- divide the list in even rows each representing an entry
- try to read the number with Region.text() (good luck ;-)
- inspect next entry if necessary
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.