File tree Expand file tree Collapse file tree
maestro-ios-xctest-runner/maestro-driver-iosUITests/Routes/Handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ struct ViewHierarchyHandler: HTTPHandler {
4545 }
4646
4747 func getAppViewHierarchy( foregroundApp: XCUIApplication , excludeKeyboardElements: Bool ) async throws -> AXElement {
48+ // On iOS 26 iPad, com.apple.DocumentManager.DockFolderViewService is reported as the
49+ // foreground process on the home screen, but its AX hierarchy is empty. The actual
50+ // home screen content lives in SpringBoard. Fall back to SpringBoard when detected.
51+ var foregroundApp = foregroundApp
52+ if foregroundApp. bundleID == " com.apple.DocumentManager.DockFolderViewService " {
53+ NSLog ( " DockFolderViewService detected as foreground, using SpringBoard hierarchy instead " )
54+ foregroundApp = springboardApplication
55+ }
4856 let appHierarchy = try getHierarchyWithFallback ( foregroundApp)
4957 await SystemPermissionHelper . handleSystemPermissionAlertIfNeeded ( appHierarchy: appHierarchy, foregroundApp: foregroundApp)
5058
You can’t perform that action at this time.
0 commit comments