What applescript commands can I send to iOS Simulator?

I know that you can tell iOS Simulator to exit with applescript. Can you say that he went "home" from the current application? And then click on the application icon to restart it? This would be useful for me for Application Tests, which should check for completion of background tasks and many other cases.

+5
source share
2 answers

Any AppleScriptable application must export a scripting dictionary so that AppleScript knows what these commands are. You can see any application dictionary by opening the application in the Script editor.

Note that even if the application does not provide Script commands for what you want, System UI Scripting or Automator can probably still be used to control its interface. (For example, to select the Home or Rotate commands in the iOS Simulator menu bar.)

In addition, in the iOS-specific user interface automation tool, you can use the Tools application that comes with Xcode.

+2
source

iOS Simulator does not directly support AppleScript. It does not have a script dictionary. This means that the only real way to manipulate it in AppleScript is to use user interface commands that work for any application.

+2
source

All Articles