PushedPage

public protocol PushedPage : BaseAppPageProtocol

Page object protocol describing behaviour of pushed.

Default implementation use back as accessibilityIdentifier.

Example:

class AboutTheAppPage: BaseAppPage, PushedPage {}

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

Requires

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

    Back button element.

    Default Implementation

    Back button.

    Note

    The button with back as accessibilityIdentifier is used.

    Declaration

    Swift

    var backButton: XCUIElement { get }
  • goBack() Default implementation

    Pop view action.

    Default Implementation

    Pop view by tapping on backButton button.

    Declaration

    Swift

    func goBack()