I want to manually take some snapshots from my applications using UI Tests intoduced in Xcode 7. By default, Xcode takes screenshots of every step and in result I got screenshots that was taken in the middle of transitions between view controllers. I want to manually take snapshot in the specific moments. Any ideas how to do this? I know how to take screenshot of UIView, but XCUIApplication doesn't provide any API to get UIView objects.
Asked
Active
Viewed 1,383 times
4
-
Check out [snapshot](https://github.com/fastlane/snapshot), part of the Fastlane suite of tools. – Joe Masilotti Nov 13 '15 at 19:35
1 Answers
4
I've created a library for this: https://github.com/zmeyc/UITestUtils The idea is to take the screenshot in the app itself and send it to the test app via sockets. I didn't find a way to capture screenshots in a controlled manner directly from the test app.

Zmey
- 2,304
- 1
- 24
- 40