     let appearingButton: XCUIElement
     let madeWithLoveView: XCUIElement
 
+    enum ScreenLocator: String, Locator {
+        case appearingButton = "appearingButton"
+        case madeWithLoveView = "madeWithLove"
+    }
+
     init(app: XCUIApplication) {
-        appearingButton = app.buttons["appearingButton"]
-        madeWithLoveView = app.any["madeWithLove"]
+        appearingButton = app.buttons[ScreenLocator.appearingButton]
+        madeWithLoveView = app.any[ScreenLocator.madeWithLoveView]
     }
 }
 

    let textField: XCUIElement
    let scrollView: XCUIElement

    init(app: XCUIApplication) {
        buttonTop = app.buttons["Top Button"]
        buttonMiddle1 = app.buttons["Middle Button 1"]
        buttonMiddle2 = app.buttons["Middle Button 2"]
        buttonBottom = app.buttons["Bottom Button"]
        textField = app.textFields.element
        scrollView = app.scrollViews.element
    }

//

import XCTest
import AutoMate

protocol TableElement {
    var title: String { get }
