I am new to iPhone Automation as well as UIAutomation introduced by iOS4. Recently, I use UIAutomation to automate application testing on iPhone Simulator, everything is going fine until I need to take screenshots using captureScreenWithName provided by the UIAutomation API. But this did not work for me, I Googled and found that it seems that this method does not work on the iPhone Simulator, but it works on a real device ...
My question is: is there a way to make this method work on the iPhone Simulator? By changing some settings? Thanks in advance!
source share