Appium inspector is very slow to load my device, which makes me unable to locate the element.
MobileAut opened this issue · 1 comments
I facing the similar issue where Appium inspector is very slow to load my device, which makes me unable to locate the element.
MacBook Pro (Apple M1 Prod) - Ventura 13.6
Appium Version - 2.2.1
Appium Inspector - 2023.11.1
appium driver list
✔ Listing available drivers
xcuitest@5.8.1 [installed (npm)]
uiautomator2@2.34.0 [installed (npm)]
Node - v21.1.0
npm - 10.2.0
Xcode - Version 15.0.1 (15A507)
Simulator - iPhone 15 (17.0)
{ "appium:deviceName": "iPhone 15", "appium:app": "sim.app PATH", "appium:automationName": "XCUITest", "appium:platformName": "iOS", "appium:platformVersion": "17.0", "appium:bundleId": "com.xxxxxxx", "appium:usePrebuiltWDA": false }
Log:
[HTTP] <-- GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/screenshot 200 348 ms - 3121552
[HTTP]
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/window/rect
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getWindowRect() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getWindowRect'
[XCUITestDriver@13e1 (d6010042)] Proxying [GET /window/size] to [GET http://127.0.0.1:8100/session/5499C62A-1658-402C-9371-E621400F786D/window/size] with no body
[Xcode] 2023-11-27 12:16:31.939349-0600 WebDriverAgentRunner-Runner[2996:2017925] Getting the most recent active application (out of 1 total items)
[Xcode]
[Xcode] t = 6.60s Requesting snapshot of accessibility hierarchy for app with pid 3004
[Xcode]
[XCUITestDriver@13e1 (d6010042)] Got response with status 200: {"value":{"width":393,"height":852},"sessionId":"5499C62A-1658-402C-9371-E621400F786D"}
[XCUITestDriver@13e1 (d6010042)] Responding to client with driver.getWindowRect() result: {"width":393,"height":852,"x":0,"y":0}
[HTTP] <-- GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/window/rect 200 89 ms - 48
[HTTP]
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/source
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getPageSource() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getPageSource'
[XCUITestDriver@13e1 (d6010042)] Matched '/source?format=xml&scope=AppiumAUT' to command name 'getPageSource'
[XCUITestDriver@13e1 (d6010042)] Proxying [GET /source?format=xml&scope=AppiumAUT] to [GET http://127.0.0.1:8100/session/5499C62A-1658-402C-9371-E621400F786D/source?format=xml&scope=AppiumAUT] with no body
[Xcode] 2023-11-27 12:16:32.025127-0600 WebDriverAgentRunner-Runner[2996:2017925] Getting the most recent active application (out of 1 total items)
[Xcode]
[Xcode] 2023-11-27 12:16:32.025974-0600 WebDriverAgentRunner-Runner[2996:2017925] The following attributes were requested to be included into the XML: {(
[Xcode] FBTypeAttribute,
[Xcode] FBYAttribute,
[Xcode] FBLabelAttribute,
[Xcode] FBIndexAttribute,
[Xcode] FBXAttribute,
[Xcode] FBNameAttribute,
[Xcode] FBHeightAttribute,
[Xcode] FBAccessibleAttribute,
[Xcode] FBValueAttribute,
[Xcode] FBVisibleAttribute,
[Xcode] FBWidthAttribute,
[Xcode] FBEnabledAttribute
[Xcode] )}
[Xcode]
[Xcode] 2023-11-27 12:16:32.026165-0600 WebDriverAgentRunner-Runner[2996:2017925] Waiting up to 2s until com.wholefoods.WholeFoods is in idle state (including animations)
[Xcode] t = 6.69s Wait for com.wholefoods.WholeFoods to idle
[Xcode]
[Xcode] t = 6.69s Requesting snapshot of accessibility hierarchy for app with pid 3004
[Xcode]
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[Xcode] 2023-11-27 12:18:17.093508-0600 WebDriverAgentRunner-Runner[2996:2017925] Cannot take a snapshot with attribute(s) (
[Xcode] "XC_kAXXCAttributeLabel",
[Xcode] "XC_kAXXCAttributeTraits",
[Xcode] "XC_kAXXCAttributeHorizontalSizeClass",
[Xcode] "XC_kAXXCAttributePlaceholderValue",
[Xcode] "XC_kAXXCAttributeBannerIsStickyAttribute",
[Xcode] "XC_kAXXCAttributeIdentifier",
[Xcode] "XC_kAXXCAttributeWindowDisplayId",
[Xcode] "XC_kAXXCAttributeIsUserInteractionEnabled",
[Xcode] "XC_kAXXCAttributeURL",
[Xcode] "XC_kAXXCAttributeUserTestingElements",
[Xcode] "XC_kAXXCAttributeHasNativeFocus",
[Xcode] "XC_kAXXCAttributeVerticalSizeClass",
[Xcode] "XC_kAXXCAttributeTruncatedValue",
[Xcode] "XC_kAXXCAttributeViewControllerTitle",
[Xcode] "XC_kAXXCAttributeFrame",
[Xcode] "XC_kAXXCAttributeWindowContextId",
[Xcode] "XC_kAXXCAttributeSystemAutomationProperties",
[Xcode] "XC_kAXXCAttributeParent",
[Xcode] "XC_kAXXCAttributeAutomationType",
[Xcode] "XC_kAXXCAttributeViewControllerClassName",
[Xcode] "XC_kAXXCAttributeElementType",
[Xcode] "XC_kAXXCAttributeElementBaseType",
[Xcode] "XC_kAXXCAttributeIsVisible"
[Xcode]
[Xcode] ) of 'XCUIElementTypeAny' after 15.00 seconds
[Xcode] 2023-11-27 12:18:17.094967-0600 WebDriverAgentRunner-Runner[2996:2017925] This timeout could be customized via 'customSnapshotTimeout' setting
[Xcode] 2023-11-27 12:18:17.095083-0600 WebDriverAgentRunner-Runner[2996:2017925] Internal error: Error kAXErrorIPCTimeout getting snapshot for element <AXUIElementRef 0x600000c28090> {pid=3004} {uid=[ID:1 hash:0x0]}
[Xcode] 2023-11-27 12:18:17.095180-0600 WebDriverAgentRunner-Runner[2996:2017925] Falling back to the default snapshotting mechanism for the element 'XCUIElementTypeAny' (some attribute values, like visibility or accessibility might not be precise though)
[Xcode]
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[Xcode]
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
[HTTP] --> GET /session/d6010042-e94c-40e0-b905-a2c75a456c8f/timeouts
[HTTP] {}
[XCUITestDriver@13e1 (d6010042)] Calling AppiumDriver.getTimeouts() with args: ["d6010042-e94c-40e0-b905-a2c75a456c8f"]
[XCUITestDriver@13e1 (d6010042)] Executing command 'getTimeouts'
Any help really appreciated.
Duplicate of appium/appium#19382
This is an issue with XCTest and unfortunately we cannot do anything about it from Appium side.