← Back to team overview

sikuli-driver team mailing list archive

[Bug 791705] Re: Add a Directory search option to the Pattern search

 

I disagree.  I use addImagePath for the main directories I use for
searching, but I really want something more transient so that I can
specify something on-the-fly, and Sikuli will know to try to match
anything that's in that directory, regardless of it's name.

ex:  I specify directory("A"), and the first match of the directory
contents, A/a.png, A/ab.png, or A/ac.png, or A/monkey.png is considered
a match.


With addImagePath: The first image file with a matching image name is used, so I'm still required to specify a specific file name.

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

Title:
  Add a Directory search option to the Pattern search

Status in Sikuli:
  New

Bug description:
  Working on a set of tests that function x-platform using Sikuli-1.0 RC2.  
  Currently I divide my search images by os (Images, Images_win, Images_osx, Images_lin), and depending on the platform specify Images, and Images_plat as my search directories.

  What would be super useful would be that instead of Pattern(file.png)
  searching for only a specific file, if you could specify a directory
  name Pattern(some_image_dir) which Sikuli would search for any match
  in that directory.

  That would simplify searching images that may vary slightly across OS
  versions or states such as selected.

  Ex:

  So if I have the directory Images_win in my search path:

  Images_win/button_feedback/button_feedback_xp.png
  Images_win/button_feedback/button_feedback_vista.png
  Images_win/button_feedback/button_feedback_win7.png
  Images_win/button_feedback/feedback.png

  In my test case I specify:
   find(Pattern("button_feedback"))

  Sikuli searches for each image in the directory until it finds a
  match.


References