Locators

  • Protocol for locators to enforce string representation.

    Locators are nicer way to store and handle XCUIElement identifiers or labels. Instead of using String literals as an identifier, the Locator object can be used.

    Example:

    view.buttons[Locators.ok]
    
    enum Locators: String, Locator {
        case ok = "okButton"
    }
    
    See more

    Declaration

    Swift

    public protocol Locator
  • iOS keyboard locators.

    Contains known set of locators used by the system keyboard on the iOS.

    • shift: Shift key.
    • delete: Delete key.
    • more: More, digits key.
    • dictation: Dictation key.
    • return: Return key.
    • go: Go key.
    • google: Google key.
    • join: Join key.
    • next: Next key.
    • route: Route key.
    • search: Search key.
    • send: Send key.
    • yahoo: Yahoo key.
    • done: Done key.
    • emergencyCall: Emergency call key
    See more

    Declaration

    Swift

    public enum KeyboardLocator : String, Locator