← Back to team overview

sikuli-driver team mailing list archive

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

 

** Changed in: sikuli
    Milestone: 1.1.0 => 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/791705

Title:
  Add a Directory search option to the Pattern search

Status in Sikuli:
  In Progress

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.

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


References