AvoidableElement

public enum AvoidableElement

Each case relates to element of user interface that can overlap scrollable area.

  • navigationBar: equivalent of UINavigationBar.
  • keyboard: equivalent of UIKeyboard.
  • other(XCUIElement, CGRectEdge): equivalent of user defined XCUIElement with CGRectEdge on which it appears. If more than one navigation bar or any other predefined AvoidableElement is expected, use .other case. Predefined cases assume there is only one element of their type.
  • Equivalent of UINavigationBar.

    Declaration

    Swift

    case navigationBar
  • Equivalent of UIKeyboard.

    Declaration

    Swift

    case keyboard
  • Equivalent of user defined XCUIElement with CGRectEdge on which it appears.

    Declaration

    Swift

    case other(element: XCUIElement, edge: CGRectEdge)