sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #14430
Re: [Question #213497]: Unchecking all checked check boxes from two similar region is behaving differently
Question #213497 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/213497
Status: Open => Answered
RaiMan proposed the following answer:
--- you still have this "nonsense" statement in your code:
if SummaryBarGraphCheckBoxesRegion.exists:
see https://answers.launchpad.net/sikuli/+question/213457 comment #3
--- your current problem
In situations like this, you need a screenshot of the target, that matches with a similarity above 0.9.
concentrate on the key aspects with as little background as possible.
Sometimes it helps to look into the matched region, to decide, wether it is a false positive.
m = find(target)
if m.exists(detail, 0):
print "really found"
else:
print "false positive"
--- one more thing: counting loops
instead of
counter = 0
while (counter < 5):
# do something
counter += 1
use
for i in range(5):
# do something
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.