Last active
December 18, 2015 08:29
-
-
Save wearhere/5754930 to your computer and use it in GitHub Desktop.
The JavaScript generated by Subliminal (here: https://gist.github.com/wearhere/5754912) to dismiss an in-app purchase alert by tapping "Buy." http://inkling.github.io/Subliminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIATarget.onAlert = function(alert) { | |
// if the alert has the expected title | |
if (alert.staticTexts()[0].label() === "Confirm Your In-App Purchase") { | |
// tap the button | |
alert.buttons()['Buy'].tap(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment