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