HealthPermissionPage

Page object representing HealthKit permission view.

It can only allow to tap on buttons:

  • Allow
  • Deny
  • Turn on all permissions
  • Turn off all permissions

Example:

let healthPermissionPage = HealthPermissionPage(in: self.app)
healthPermissionPage.turnOnAllElement.tap()
healthPermissionPage.allowElement.tap()
  • Navigation bar on HealthKit permission view.

    This bar can be used to identify if the permission view is visible.

    Declaration

    Swift

    open var healthAccessElement: XCUIElement
  • Represents all possible messages in HealthKit permission view.

    Declaration

    Swift

    public static var messages: [String]
  • Locators used in the HealthKit permission view.

    • healthAccess: Navigation bar identifier.
    See more

    Declaration

    Swift

    public enum Locators: String, Locator