How can I get captureScreenWithName in UIAutomation running in iPhone Simulator?

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!

+4
source share
1 answer

Nope. I myself was looking for this functionality - and it SHOULD work, but this is not currently available. If you have a developer license, you can check this out on the Apple iOS Developer Forum.

At least we don’t need to write other code for the Simulator against the device,

Yj

+1
source

All Articles