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.