Open jekson0702 opened 1 month ago
Can you try passing df:liveVideo
false
in the capability?
@sudharsan-selvaraj It doesnt work(( Tried to pass in appium inspector and in server config property.
500 error GET /wd/hub/session/f1421eeb-b97f-40f0-9bc0-ec9798a39525/source
cause
[f1421eeb][XCUITestDriver@8d3e] Got response with status 500: {"value":{"error":"unknown error","message":"-[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3011c2c00","traceback":"(\n\t0 CoreFoundation 0x000000018b0bd098 4250D45C-51A9-3AC5-8C3D-69DE936FAD46 + 540824\n\t1 libobjc.A.dylib 0x00000001883bf2e4 objc_exception_throw + 88\n\t2 CoreFoundation 0x000000018b1c37c8 4250D45C-51A9-3AC5-8C3D-69DE936FAD46 + 1615816\n\t3 CoreFoundation 0x000000018b05a888 4250D45C-51A9-3AC5-8C3D-69DE936FAD46 + 137352\n\t4 CoreFoundation 0x000000018b05a1b0 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x0000000105c2e138 -[XCUIElement(FBUtilities) fb_waitUntilStableWithTimeout:] + 308\n\t6 WebDriverAgentLib 0x0000000105be4b58 +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 644\n\t7 WebDriverAgentLib 0x0000000105be4... [f1421eeb][W3C] Matched W3C error code 'unknown error' to UnknownError [f1421eeb][XCUITestDriver@8d3e] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCUIApplicationProcess waitForQuiescenceIncludingAnimationsIdle:]: unrecognized selector sent to instance 0x3011c2c00 at errorFromW3CJsonCode (/Users/wautotests/.appium/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/protocol/errors.js:1112:25) at ProxyRequestError.getActualError (/Users/wautotests/.appium/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/protocol/errors.js:981:14) at JWProxy.command (/Users/wautotests/.appium/node_modules/appium-xcuitest-driver/node_modules/@appium/base-driver/lib/jsonwp-proxy/proxy.js:348:19) at processTicksAndRejections (node:internal/process/task_queues:105:5) at XCUITestDriver.proxyCommand (/Users/wautotests/.appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:103:35) at XCUITestDriver.mobileGetSource (/Users/wautotests/.appium/node_modules/appium-xcuitest-driver/lib/commands/source.js:50:35) at XCUITestDriver.getPageSource (/Users/wautotests/.appium/node_modules/appium-xcuitest-driver/lib/commands/source.js:25:9) [f1421eeb][device-farm-main] Intercepted response for session f1421eeb-b97f-40f0-9bc0-ec9798a39525 with method getPageSource {} f1421eeb-b97f-40f0-9bc0-ec9798a39525 [f1421eeb][device-farm-main] Saving log entry for session f1421eeb-b97f-40f0-9bc0-ec9798a39525 with eventId undefined [f1421eeb][device-farm-main] Successfully saved log entry for f1421eeb-b97f-40f0-9bc0-ec9798a39525, commandName: getPageSource [f1421eeb][HTTP] <-- GET /wd/hub/session/f1421eeb-b97f-40f0-9bc0-ec9798a39525/source 500 38 ms - 1466
relevant only for iOS, as it turned out
I had this issue as well on Android and I found out that its related to the server I run Appium (and Device Farm) on. It is Debian 12 based server and there is probably something missing so it cannot stream properly. I had no issues while running same version of Appium and Device Farm (and same phone) on Windows server.
However I did not find out what was causing the problem :(
I try to connect to real device (connected to Device farm) with Appium inspector. App is installed on device and launched succesfully. But I cant see any elements in Appium inspector (infinite loading)
Remote device control is working fine.
Device farm 9.4.1 Appium 2.11.5
caps: { "platformName": "ios", "appium:deviceName": "w-iPhone13mini", "appium:automationName": "XCUITest", "appium:app": "/Users/wautotests/Downloads/w.ipa", "appium:udid": "00008110-00061012149A502E" }
APPIUM LOG