Locator
public protocol Locator
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"
}
-
identifier
Default implementationElement identifier.
Default Implementation
Element identifier.
Declaration
Swift
var identifier: String { get }