facebookarchive / ios-snapshot-test-case

Snapshot view unit tests for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any way we can use this with XC UI Tests.?

sukesh1989 opened this issue · comments

Any way we can use this with XC UI Tests.? I want to compare screenshots of app and determine the video rendering and player features. Can you please help? Can i pass XCUIELEMENT or XCUIAPPLICATION objects somehow?

@sukesh1989 Unit tests and UI tests inherits files from XCTestCase. Same as FBSnapshotTestCase so you should be able to take a snapshot in your UI test.

I was trying to implement FBSnapshotTestCase with my UITests, but I couldn't generate a view / layer from the XCUIApplication. If I could simply get a snapshot of the simulator that would be great.

I haven't had a ton of experience working with XCUIElement. I'd really appreciate any help!