Just below the XCUIElementQuery class inside XCTest there are many constants where the caption above the document is higher:
Constants for use with -[XCUIElement typeKey:modifierFlags:], representing keys that have no textual representation. These comprise the set of control, function, and modifier keys found on most keyboards.
It seems that there should be an XCUIElement method called typeKey:modifierFlags: as indicated in the note. However, I cannot find this method in the documentation. I also do not see any method that replaces this behavior using the above constants. The following is an incomplete list of constants that I would like to use:
let XCUIKeyboardKeyDelete: String let XCUIKeyboardKeyReturn: String let XCUIKeyboardKeyTab: String let XCUIKeyboardKeyCommand: String
Is this code premature and most likely to be completed later as part of future releases of Xcode 7?
Ultimately, I would like to be able to type cmd+a , and then use XCUIKeyboardKeyDelete to delete the contents of this XCUIElement . If there are good alternatives currently available in testing the Xcode 7 user interface, I would love to know about that.
-> Swift 2.0 beta 4
source share