Skip to content

Instantly share code, notes, and snippets.

@fernyb
Created May 7, 2014 13:47
Show Gist options
  • Save fernyb/6fbbb50decb2ea1bf441 to your computer and use it in GitHub Desktop.
Save fernyb/6fbbb50decb2ea1bf441 to your computer and use it in GitHub Desktop.
Close current tab iPad Simulator
tell application "System Events" to tell process "iPhone Simulator"
tell application "iPhone Simulator" to activate
delay 1
tell window "iOS Simulator - iPad Retina / iOS 7.1 (11D167)"
--get the name of window 1
--get every window
click button 8
--get every button
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment