Search code examples
iosios8calabashcalabash-ios

Is it possible to set user's Apple ID (for sandbox in-app purchasing) programmatically?


For background: I'm running UI automation (using Calabash) on our iOS app and can navigate the Sign In dialog to select "Use Existing Apple ID" when purchasing content. However, the next dialog is the "Apple ID Password" dialog which our contains the username and password field. Our automation can't navigate it since it is a native dialog.

Is there any way to set/clear those values programmatically, so I can bypass that dialog?


Solution

  • Interacting with native dialogs was possible. Here's a gist containing the class I wrote, in case it helps others who find themselves in a similar situation.

    https://gist.github.com/TeresaP/b7373a907ebb31acac39