sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51515
Re: [Question #680461]: Problem in formatting string while find fails
Question #680461 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680461
Description changed to:
I am trying to wait for one pattern generated by passing image path.
Pattern p = new Pattern("C:\\program files(86x)\\sikuli\\images\\image.png");
Screen s = new Screen();
s.wait(p);
and when it is tring to format "find fail" exception message it it
throwing below error:
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = 'W'
at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2691)
at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2720)
at java.util.Formatter.parse(Formatter.java:2560)
at java.util.Formatter.format(Formatter.java:2501)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at org.sikuli.script.Image.toString(Image.java:427)
at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2886)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2763)
at java.util.Formatter.format(Formatter.java:2520)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at org.sikuli.script.FindFailed.createErrorMessage(FindFailed.java:173)
at org.sikuli.script.Region.wait(Region.java:2328)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.