RawRepresentable

public extension RawRepresentable where RawValue == String

Get the XCUIElement from RawRepresentable’s RawValue which also been used as accessibilityIdentifier

  • get the element from app’s ui hierarchy with RawValue

    Declaration

    Swift

    var element: XCUIElement { get }
  • query elements from RawValue

    Declaration

    Swift

    var query: XCUIElementQuery { get }
  • count of RawValue identifier

    Declaration

    Swift

    var count: Int { get }
  • Specify the element with the subscript

    Declaration

    Swift

    subscript(i: Int) -> XCUIElement { get }

    Parameters

    i

    index

  • get the query from app’s ui hierarchy with RawValue

    Declaration

    Swift

    func queryFor(identifier: Self) -> XCUIElementQuery

    Parameters

    identifier

    rawValue to convert to ID for search

    Return Value

    query result