سؤال

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