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 usecloseas
accessibilityIdentifier
in custom close button in the application to work with default implementation of this protocol.
-
closeButton
Default implementationClose button element.
Default Implementation
Close button.
Note
The button withclose
asaccessibilityIdentifier
is used.Declaration
Swift
var closeButton: XCUIElement { get }
-
closeModalPage()
Default implementationClose modal view action.
Default Implementation
Close modal view by tapping on
closeButton
button.Declaration
Swift
func closeModalPage()