sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03042
[Bug 791705] Re: Add a Directory search option to the Pattern search
addImagePath is what you are looking for.
http://sikuli.org/docx/globals.html?highlight=addimagepath#addImagePath
** Changed in: sikuli
Status: New => Invalid
--
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:
Invalid
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