Pergunta

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" );
Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top