← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

**** 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())

** Affects: sikuli
     Importance: Medium
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.2.0

-- 
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:
  [1.1.0] 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


Follow ups

References