sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00860
[Question #142702]: [Java] How to automatically name a screenshot with 1.0X rc1?
New question #142702 on Sikuli:
https://answers.launchpad.net/sikuli/+question/142702
Hi folks, I recently got Sikuli X 1.0 rc1 working from Java, thanks for your good documentation, RaiMan! Now I'm trying to use a new feature of rc1. The changes for rc1 state, "Screenshot naming - screenshots can be named automatically with timestamps or the text in them as well as manually with prompted filenames." But I don't see anywhere how to do this. Here's my code:
Screen s = new Screen();
ScreenImage si = s.capture();
System.out.println( "Image captured: " + si.getFilename() );
The only problem is that it stores the captured .png file in a /var/folders/.../-Tmp-/ directory that is removed when the test is finished. I have figured out how to copy the file using standard Java File api calls, so I can copy the image to a place and see it when the test is done. I was just wondering how to implement the automatic screenshot naming feature of RC1. Thanks.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.