sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #16774
Re: [Question #222645]: onAppear, while loop and observe timeout
Question #222645 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/222645
Description changed to:
hi
i want to do something like this:
def closepage(event):
click("close_subpage")
# mm.next do not work here
with findAll ("images_on_main_pages") as mm:
while mm.hasNext():
click ("image_link_to_subpage")
# this construction don`t work
if (onAppear("close_subpage", closepage))
mm.next()
# i want mm.next() here without processing code after stopObserver()
observe(20, background=False)
stopObserver()
# i want to do bottom lines only if observe() make timeout
print ("do something else if close_subpage not appear in 20sec")
mm.next()
how make this work?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.