← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #273995]: If there is a change in the function behavior such as wait, exists, find

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sorry, but I cannot reproduce the problem. works fine with final 1.1.0.

tested on
- Mac: Safari and Chrome
- Windows: Chrome

the masn page was already scrolled down to the Autos section

Testscript (on Windows):
img = Pattern("img.png").targetOffset(-4,28) # image of  Research | Listings | Quotes  including button new below
m = find(img) # find it
reg = m.below(200).grow(10)
#reg.highlight(2) # optionally highlight the search region
click(m) # click the New button
new = "new.png" # the new entry in the drop down
if reg.exists(new):
  print "found"
  reg.highlight(-2)
else:
  print "not found"

prints "found" and highlights the new entry image at the place it was
found (though highlight makes the dropdown vanish)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.