ModalPage

public protocol ModalPage : BaseAppPageProtocol

Page object protocol describing behaviour of modally presented view.

Default implementation use close as accessibilityIdentifier.

Example:

class AboutTheAppPage: BaseAppPage, ModalPage {}

let aboutTheAppPage = AboutTheAppPage(in: containerView)
aboutTheAppPage.closeModalPage()

Requires

It is required to use close as accessibilityIdentifier in custom close button in the application to work with default implementation of this protocol.
  • closeButton Default implementation

    Close button element.

    Default Implementation

    Close button.

    Note

    The button with close as accessibilityIdentifier is used.

    Declaration

    Swift

    var closeButton: XCUIElement { get }
  • closeModalPage() Default implementation

    Close modal view action.

    Default Implementation

    Close modal view by tapping on closeButton button.

    Declaration

    Swift

    func closeModalPage()