문제

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" );
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top