Internal error: XCTPerformOnMainRunLoop work timed out after 60.0s

Using WDA from Appium to automate XCUI Tests

Machine: Mac OS 11.4 Device: iPad 14.6 Xcode : Version 12.5 (12E262)

When WDA is unable to take screenShot hence not able to automate UI

Xcode Logs: 2021-06-24 14:15:26.642040+0530 WebDriverAgentRunner-Runner[2474:850794] Getting the most recent active application (out of 1 total items) t = 5975.92s Requesting snapshot of accessibility hierarchy for app with pid 2491 2021-06-24 14:15:28.747873+0530 WebDriverAgentRunner-Runner[2474:850794] Getting the most recent active application (out of 1 total items) 2021-06-24 14:15:28.803031+0530 WebDriverAgentRunner-Runner[2474:850794] Getting the most recent active application (out of 1 total items) 2021-06-24 14:15:28.806114+0530 WebDriverAgentRunner-Runner[2474:850794] The following attributes were requested to be included into the XML: {( FBHeightAttribute, FBAccessibleAttribute, FBValueAttribute, FBVisibleAttribute, FBWidthAttribute, FBEnabledAttribute, FBTypeAttribute, FBYAttribute, FBLabelAttribute, FBIndexAttribute, FBXAttribute, FBNameAttribute )} 2021-06-24 14:15:28.806528+0530 WebDriverAgentRunner-Runner[2474:850794] Waiting up to 2s until com.carriertransicold.containerLINK is in idle state (including animations) t = 5978.08s Wait for com.carriertransicold.containerLINK to idle t = 5978.09s Requesting snapshot of accessibility hierarchy for app with pid 2491 2021-06-24 14:18:00.830823+0530 WebDriverAgentRunner-Runner[2474:850794] Cannot take a snapshot with attribute(s) ( "XC_kAXXCAttributeElementBaseType", "XC_kAXXCAttributeHasNativeFocus", "XC_kAXXCAttributeTruncatedValue", "XC_kAXXCAttributeViewControllerTitle", "XC_kAXXCAttributeUserTestingElements", "XC_kAXXCAttributeAutomationType", "XC_kAXXCAttributeBannerIsStickyAttribute", "XC_kAXXCAttributeIdentifier", "XC_kAXXCAttributeTraits", "XC_kAXXCAttributeFrame", "XC_kAXXCAttributeVerticalSizeClass", "XC_kAXXCAttributeViewControllerClassName", "XC_kAXXCAttributeIsUserInteractionEnabled", "XC_kAXXCAttributeLabel", "XC_kAXXCAttributeURL", "XC_kAXXCAttributeParent", "XC_kAXXCAttributeHorizontalSizeClass", "XC_kAXXCAttributePlaceholderValue", "XC_kAXXCAttributeElementType", "XC_kAXXCAttributeIsVisible" ) of 'XCUIElementTypeAny' after 600.00 seconds 2021-06-24 14:18:00.831124+0530 WebDriverAgentRunner-Runner[2474:850794] This timeout could be customized via 'customSnapshotTimeout' setting 2021-06-24 14:18:00.831248+0530 WebDriverAgentRunner-Runner[2474:850794] Internal error: XCTPerformOnMainRunLoop work timed out after 60.0s 2021-06-24 14:18:00.831459+0530 WebDriverAgentRunner-Runner[2474:850794] Falling back to the default snapshotting mechanism for the element 'XCUIElementTypeAny' (some attribute values, like visibility or accessibility might not be precise though) 2021-06-24 14:20:30.865277+0530 WebDriverAgentRunner-Runner[2474:850794] Cannot retrieve element attribute(s) ( "XC_kAXXCAttributeIsElement" ). Original error: Error Domain=com.apple.dt.xctest.automation-support.error Code=11 "Accessibility error kAXErrorIPCTimeout from AXUIElementCopyMultipleAttributeValues for 2016" UserInfo={accessibility-error=-25216, NSLocalizedDescription=Accessibility error kAXErrorIPCTimeout from AXUIElementCopyMultipleAttributeValues for 2016}

Errors are displayed

Hi @Transicold Developer, thanks for the question. I have the same problem for 2 months and couldn't find any answer yet. Did you find any solution for this problem? I am holding iOS automation project because of this issue. Thanks in advance.

Internal error: XCTPerformOnMainRunLoop work timed out after 60.0s
 
 
Q