Question

I can see screenshot in log, but I can't store it in given path. How can I store it in given path, e.g.: \users\downloads\test.png

Screenshot is taken using the code below:

target.captureScreenWithName( "screenshot1.png" );
Était-ce utile?

La solution

In the Instruments window, in the left sidebar, there is the Logging section on the very bottom. You can save all your log results (logs, screenshots etc.) in desired folder by pressing Export Traced Results… button.

Also, you can check Continuously Log Results checkmark and specify required folder. All log results will be saved in that folder automatically.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top