← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #253716]: Sikuli generates useless PNG files while running...

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This only happens, if you use the with construct (which indeed has some
quirks).

In your case the usage does not really make sense anyway:
- you are not saving any typing
- and you get an additional indent

this works as expected:

app = App("gnome-calculator")
app.open()
for i in xrange(int(100500)):
  wnd = app.window()
  if wnd is not None:
    region = Region(wnd)
    if region.exists("1409168557236.png", 0):
      break

Nevertheless thanks for point in out. I take it as a bug.

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