Other Subscripts

The following subscripts are available globally.

  • Returns XCUIElement that matches the type and locator.

    Example:

    let button = app.buttons[Locators.ok]
    

    Declaration

    Swift

    public subscript(locator: Locator) -> XCUIElement

    Parameters

    locator

    Locator used to find element