sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18076
Re: [Question #229022]: onAppear without waiting
Question #229022 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/229022
Ador Juan Cruz proposed the following answer:
try this,
type("https://www.google.com/")
click("goarrow.png")
if exists("UserNamePassword.png", 30):
click(getLastMatch())
else:
print "user name password did not appear within 30 seconds"
This will wait up to 30 seconds for UserNamePassword.png to appear. if it appears sooner then it will immediately click UserNamePassword.png.
doing click(getLastMatch()) saves you time by not needing to do another match.
Another thing you can do is to define and use regions
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.