← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #246184]: Click buttons until there are none OR click away error prompt

 

Question #246184 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/246184

    Status: Open => Answered

Eugene S proposed the following answer:
Hi,

You can try something like that:

while True:
   wait(1) # Give some time for each button to appear
   if exists("button.png"):
      click("button.png")
   elif exists("OKButton.png"):
      click("OKButton.png")
   else:
      break

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.