← Back to team overview

sikuli-driver team mailing list archive

[Bug 1402185] Re: [check] replacing existing image file with new content on the fly is not recognised (old image still used) --- workaround

 

** Summary changed:

- [1.1.0] replacing existing image file with new content on the fly is not recognised (old image still used) --- workaround
+ [check] replacing existing image file with new content on the fly is not recognised (old image still used) --- workaround

** Changed in: sikuli
    Milestone: 2.0.0 => 2.0.1

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1402185

Title:
  [check] replacing existing image file with new content on the fly is
  not recognised (old image still used) --- workaround

Status in Sikuli:
  In Progress

Bug description:
  **** workaround see comment #1

  --- from bug 1402048
  capturing and replacing an existing image in the current test won't be found on screen
  (assume the image won't be found before capturing).

  Here an example code for capturing and replacing an image:

  import os, shutil
  f = capture(Region(0, 0, 500, 400))
  shutil.copy(f, os.path.join(getBundlePath(), 'test.png'))
  find(Pattern("test.png").exact())

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1402185/+subscriptions


References