Search code examples
iphoneioscocoa-touchios-ui-automation

iOS UIAutomation: is it possible to compare screenshots to reference images?


The title explains it already. I'm looking for a solution to compare screenshots taken with target.captureScreenWithName in a UIAutomation script to some reference images. This would be really nice to test some custom views.


Solution

  • It is impossible to do it directly from UIA, at least I didn't find any way to do this. All the screenshots are saved to the test result folder. You can then process them by any tool you like.