LocationUpgradeWhenInUseAlwaysAlert
Represents LocationUpgradeWhenInUseAlwaysAlert service alert.
System alert supposed to be used in the handler of the XCTestCase.addUIInterruptionMonitor(withDescription:handler:) method.
Example:
let token = addUIInterruptionMonitor(withDescription: "Alert") { (alert) -> Bool in
guard let alert = LocationUpgradeWhenInUseAlwaysAlert(element: alert) else {
XCTFail("Cannot create LocationUpgradeWhenInUseAlwaysAlert object")
return false
}
alert.allowElement.tap()
return true
}
mainPage.goToPermissionsPageMenu()
// Interruption won't happen without some kind of action.
app.tap()
removeUIInterruptionMonitor(token)
Note
Handlers should returntrue if they handled the UI, false if they did not.
-
Represents all possible messages in
LocationUpgradeWhenInUseAlwaysAlertservice alert. -
System service alert element.
-
Initialize
LocationUpgradeWhenInUseAlwaysAlertwith alert element.
LocationUpgradeWhenInUseAlwaysAlert Structure Reference