BaseAppPageProtocol

public protocol BaseAppPageProtocol

Base page object protocol. Defines basic properties and methods required by all page objects.

Example:

class MainPage: BaseAppPageProtocol {
    var view: XCUIElement
    public init(in view: XCUIElement) {
        self.view = view
    }
}
  • The container view on which all elements will be placed.

    Note

    view can be an instance of XCUIApplication class.

    Declaration

    Swift

    var view: XCUIElement { get }