sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24487
[Question #244750]: setRect in 2 for loops doesn't work
New question #244750 on Sikuli:
https://answers.launchpad.net/sikuli/+question/244750
Hi Raiman,
Thanks for your great job firstly.
here i find some deviation, described as following:
1# could not find 1392034498790.png, actually it's there
search_rect=setRect(379,163,689,56)
for a in range(1,3):
while not search_rect.exists("1392034498790.png"):
if search_rect.exists("1392034498790.png"):
search_rect.find("1392034498790.png").highlight(3)
popup("exists")
2# don't use search_rect, it can find 1392034498790.png
for a in range(1,3):
while not exists("1392034498790.png"):
if exists("1392034498790.png"):
find("1392034498790.png").highlight(3)
popup("exists")
3# reduce 1 loop, it can find 1392034498790.png
while not search_rect.exists("1392034498790.png"):
if search_rect.exists("1392034498790.png"):
search_rect.find("1392034498790.png").highlight(3)
popup("exists")
So I think this could be bug of sikuli, would you please comment on it?
Thanks a lot
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.