Created
December 3, 2017 04:45
-
-
Save azamsharp/ba7063ca0bbd4d6c3f60cdff7bffbe8f to your computer and use it in GitHub Desktop.
tapAndType Extension Method
This file contains hidden or 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
extension XCUIElement { | |
func tapAndType(text :String) { | |
tap() | |
typeText(text) | |
} | |
func tapAndClear() { | |
tap() | |
typeText("") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment