I can not take screen shoot or record video by appium 1.22 and real device ios 15

i can not take screen shoot or record video by appium 1.22 and real device ios 15
after appear OverlayScreen for new appium “automation running -hold both volue button to stop”

iam also delete derived data from xcode and run fresh copy of WDA

error is WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}

[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen

[debug] [XCUITest] Taking screenshot with WDA

[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’

[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body

[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}

[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen

The error of record video is
Releasing connect[XCUITest] The screen recorder utility has failed to storions for 00008101-00015D200E91001E device on 9100 port number
e he actual screen recording at ‘/var/folde5m[DevCon Factory] rs/m7/dcnc81p91r3df0cNo cachedn05js2wdc00 connections have been found
00gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’
[debug] [W3C (c83f2546)] Encountered internal error running command: Error: The screen recorder utility has failed to store the actual screen recording at ‘/var/folders/m7/dcnc81p91r3df0cn05js2wdc0000gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’
[debug] [W3C (c83f2546)] at Object.errorAndThrow (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:94:35)
[debug] [W3C (c83f2546)] at XCUITestDriver.stopRecordingScreen (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/recordscreen.js:347:11)

this log of os and xcode log

[WD Proxy] Replacing sessionId 5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498 with c83f2546-79a7-42e4-825d-b70dafa1293a
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C7030000-0000-0000-FE02-000000000000/enabled 200 428 ms - 65
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 1 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios predicate string",“value”:“label == ‘currentDate’”}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios predicate string",“label == ‘currentDate’”,“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“predicate string”,“value”:“label == ‘currentDate’”}
[debug] [WD Proxy] Got response with status 200: {“value”:{“ELEMENT”:“C2030000-0000-0000-FE02-000000000000”,“element-6066-11e4-a52e-4f735466cecf”:“C2030000-0000-0000-FE02-000000000000”},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C (c83f2546)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“C2030000-0000-0000-FE02-000000000000”,“ELEMENT”:“C2030000-0000-0000-FE02-000000000000”}
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 200 855 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click
[HTTP] {“id”:“C2030000-0000-0000-FE02-000000000000”}
[W3C (c83f2546)] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [WD Proxy] Matched ‘/wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click’ to command name ‘click’
[debug] [WD Proxy] Proxying [POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element/C2030000-0000-0000-FE02-000000000000/click] with body: {“id”:“C2030000-0000-0000-FE02-000000000000”}
[debug] [WD Proxy] Got response with status 200: {“value”:null,“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[WD Proxy] Replacing sessionId 5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498 with c83f2546-79a7-42e4-825d-b70dafa1293a
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click 200 1485 ms - 65
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios predicate string",“value”:“label CONTAINS[c]‘November’”}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios predicate string",“label CONTAINS[c]‘November’”,“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“predicate string”,“value”:“label CONTAINS[c]‘November’”}
[debug] [WD Proxy] Got response with status 200: {“value”:{“ELEMENT”:“C5030000-0000-0000-FE02-000000000000”,“element-6066-11e4-a52e-4f735466cecf”:“C5030000-0000-0000-FE02-000000000000”},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C (c83f2546)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“C5030000-0000-0000-FE02-000000000000”,“ELEMENT”:“C5030000-0000-0000-FE02-000000000000”}
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 200 889 ms - 137
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C5030000-0000-0000-FE02-000000000000/attribute/enabled
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getAttribute() with args: [“enabled”,“C5030000-0000-0000-FE02-000000000000”,“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getAttribute’
[debug] [WD Proxy] Matched ‘/element/C5030000-0000-0000-FE02-000000000000/attribute/enabled’ to command name ‘getAttribute’
[debug] [WD Proxy] Proxying [GET /element/C5030000-0000-0000-FE02-000000000000/attribute/enabled] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element/C5030000-0000-0000-FE02-000000000000/attribute/enabled] with no body
[debug] [WD Proxy] Got response with status 200: {“value”:true,“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C (c83f2546)] Responding to client with driver.getAttribute() result: “true”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C5030000-0000-0000-FE02-000000000000/attribute/enabled 200 787 ms - 16
[HTTP]
method checkButtonHideDatepickerPreviousMonth succeed
[INFO ] 2021-11-29 15:01:50.307 [main] Log - method checkButtonHideDatepickerPreviousMonth succeed
method hidedatepickerShowCalendar is starting …
[INFO ] 2021-11-29 15:01:50.313 [main] Log - method hidedatepickerShowCalendar is starting …
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/appium/start_recording_screen
[HTTP] {“options”:{“forceRestart”:true,“videoType”:“h264”,“videoScale”:“1280:720”}}
[debug] [W3C (c83f2546)] Calling AppiumDriver.startRecordingScreen() with args: [{“forceRestart”:true,“videoType”:“h264”,“videoScale”:“1280:720”},“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘startRecordingScreen’
[DevCon Factory] Releasing connections for 00008101-00015D200E91001E device on 9100 port number
[DevCon Factory] No cached connections have been found
[debug] [WD Proxy] Matched ‘/appium/settings’ to command name ‘getSettings’
[debug] [WD Proxy] Proxying [GET /appium/settings] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/appium/settings] with no body
[debug] [WD Proxy] Got response with status 200: {“value”:{“boundElementsByIndex”:false,“mjpegServerFramerate”:10,“screenshotOrientation”:“auto”,“reduceMotion”:false,“elementResponseAttributes”:“type,label”,“screenshotQuality”:1,“mjpegScalingFactor”:100,“keyboardPrediction”:0,“defaultActiveApplication”:“auto”,“mjpegServerScreenshotQuality”:25,“defaultAlertAction”:“accept”,“keyboardAutocorrection”:0,“useFirstMatch”:false,“shouldUseCompactResponses”:true,“customSnapshotTimeout”:15,“dismissAlertButtonSelector”:"",“activeAppDetectionPoint”:“64.00,64.00”,“snapshotMaxDepth”:50,“waitForIdleTimeout”:0,“includeNonModalElements”:false,“acceptAlertButtonSelector”:"",“animationCoolOffTimeout”:2},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[DevCon Factory] Requesting connection for device 00008101-00015D200E91001E on local port 9100, device port 9100
[debug] [DevCon Factory] Cached connections count: 1
[DevCon Factory] Successfully requested the connection for 00008101-00015D200E91001E:9100
[ffmpeg] ffmpeg version 4.4.1 Copyright © 2000-2021 the FFmpeg developers
[ffmpeg] built with Apple clang version 13.0.0 (clang-1300.0.29.3)
[ffmpeg]
[ffmpeg] configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/4.4.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
[ffmpeg] libavutil 56. 70.100 / 56. 70.100
[ffmpeg] libavcodec 58.134.100 / 58.134.100
[ffmpeg] libavformat 58. 76.100 / 58. 76.100
[ffmpeg] libavdevice 58. 13.100 / 58. 13.100
[ffmpeg] libavfilter 7.110.100 / 7.110.100
[ffmpeg] libavresample 4. 0. 0 / 4. 0. 0
[ffmpeg] libswscale 5. 9.100 / 5. 9.100
[ffmpeg] libswresample 3. 9.100 / 3. 9.100
[ffmpeg] libpostproc 55. 9.100 / 55. 9.100
[ffmpeg]
[XCUITest] Screen capture process did not start within 5000ms. Continuing anyway
[XCUITest] Starting screen capture on the device ‘00008101-00015D200E91001E’ with command: ‘ffmpeg -f mjpeg -i http://127.0.0.1:9100 -vf scale=1280:720 -vcodec h264 -y /var/folders/m7/dcnc81p91r3df0cn05js2wdc0000gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’. Will timeout in 180000ms
[debug] [W3C (c83f2546)] Responding to client with driver.startRecordingScreen() result: “”
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/appium/start_recording_screen 200 5165 ms - 12
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 1 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios class chain",“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]"}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios class chain","
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]",“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]"}
[debug] [WD Proxy] Got response with status 200: {“value”:{“ELEMENT”:“B6030000-0000-0000-FE02-000000000000”,“element-6066-11e4-a52e-4f735466cecf”:“B6030000-0000-0000-FE02-000000000000”},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C (c83f2546)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“B6030000-0000-0000-FE02-000000000000”,“ELEMENT”:“B6030000-0000-0000-FE02-000000000000”}
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 200 1742 ms - 137
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/displayed
[HTTP] {}
[W3C (c83f2546)] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [WD Proxy] Matched ‘/wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/displayed’ to command name ‘elementDisplayed’
[debug] [WD Proxy] Proxying [GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/displayed] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element/B6030000-0000-0000-FE02-000000000000/displayed] with no body
[debug] [WD Proxy] Got response with status 200: {“value”:true,“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[WD Proxy] Replacing sessionId 5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498 with c83f2546-79a7-42e4-825d-b70dafa1293a
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/displayed 200 687 ms - 65
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 1 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios class chain",“value”:"
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]"}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios class chain","/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]",“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]"}
[debug] [WD Proxy] Got response with status 200: {“value”:{“ELEMENT”:“B6030000-0000-0000-FE02-000000000000”,“element-6066-11e4-a52e-4f735466cecf”:“B6030000-0000-0000-FE02-000000000000”},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C (c83f2546)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“B6030000-0000-0000-FE02-000000000000”,“ELEMENT”:“B6030000-0000-0000-FE02-000000000000”}
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 200 1696 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/click
[HTTP] {“id”:“B6030000-0000-0000-FE02-000000000000”}
[W3C (c83f2546)] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [WD Proxy] Matched ‘/wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/click’ to command name ‘click’
[debug] [WD Proxy] Proxying [POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/click] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element/B6030000-0000-0000-FE02-000000000000/click] with body: {“id”:“B6030000-0000-0000-FE02-000000000000”}
[debug] [WD Proxy] Got response with status 200: {“value”:null,“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[WD Proxy] Replacing sessionId 5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498 with c83f2546-79a7-42e4-825d-b70dafa1293a
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/B6030000-0000-0000-FE02-000000000000/click 200 1409 ms - 65
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 20 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios class chain",“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther"}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios class chain","
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther",“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther"}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:"unable to find an element using ‘class chain’, value '
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther’",“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 1196 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther"}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:"unable to find an element using ‘class chain’, value '
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther’",“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [W3C (c83f2546)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (c83f2546)] at XCUITestDriver.doNativeFind (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:130:11)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.findNativeElementOrElements (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:90:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElOrEls (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:23:12)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElOrElsWithProcessing (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:33:12)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElement (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:53:10)
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 404 2975 ms - 1234
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 10 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios class chain",“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeButton"}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios class chain","
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeButton",“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeButton"}
[debug] [WD Proxy] Got response with status 200: {“value”:{“ELEMENT”:“C2030000-0000-0000-FE02-000000000000”,“element-6066-11e4-a52e-4f735466cecf”:“C2030000-0000-0000-FE02-000000000000”},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C (c83f2546)] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:“C2030000-0000-0000-FE02-000000000000”,“ELEMENT”:“C2030000-0000-0000-FE02-000000000000”}
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 200 2432 ms - 137
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click
[HTTP] {“id”:“C2030000-0000-0000-FE02-000000000000”}
[W3C (c83f2546)] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command ‘proxyReqRes’
[debug] [WD Proxy] Matched ‘/wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click’ to command name ‘click’
[debug] [WD Proxy] Proxying [POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element/C2030000-0000-0000-FE02-000000000000/click] with body: {“id”:“C2030000-0000-0000-FE02-000000000000”}
[debug] [WD Proxy] Got response with status 200: {“value”:null,“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[WD Proxy] Replacing sessionId 5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498 with c83f2546-79a7-42e4-825d-b70dafa1293a
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element/C2030000-0000-0000-FE02-000000000000/click 200 1178 ms - 65
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 14 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios class chain",“value”:"
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther"}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios class chain","/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther",“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther"}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:“unable to find an element using ‘class chain’, value '/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther’",“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 1458 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"
/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther”}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:“unable to find an element using ‘class chain’, value '/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther’",“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [W3C (c83f2546)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (c83f2546)] at XCUITestDriver.doNativeFind (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:130:11)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.findNativeElementOrElements (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:90:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElOrEls (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:23:12)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElOrElsWithProcessing (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:33:12)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElement (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:53:10)
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 404 3453 ms - 1234
[HTTP]
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getCurrentContext() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getCurrentContext’
[debug] [W3C (c83f2546)] Responding to client with driver.getCurrentContext() result: “NATIVE_APP”
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/context 200 16 ms - 22
[HTTP]
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element
[HTTP] {“using”:"-ios class chain",“value”:"
/XCUIElementTypeStaticText[label == \"No connection\"]”}
[debug] [W3C (c83f2546)] Calling AppiumDriver.findElement() with args: ["-ios class chain","/XCUIElementTypeStaticText[label == \"No connection\"]",“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘findElement’
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id, css selector
[debug] [BaseDriver] Waiting up to 2000 ms for condition
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"
/XCUIElementTypeStaticText[label == \"No connection\"]"}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:“unable to find an element using ‘class chain’, value '/XCUIElementTypeStaticText[label == \"No connection\"]’",“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[RoutingHTTPServer handleRoute:withRequest:response:] + 164\n\t5 WebDriverAgentLib 0x0000000107c9b220 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 64\n\t6 libdispatch.dylib 0x000000018247e950 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 14…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 749 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"
/XCUIElementTypeStaticText[label == \"No connection\"]”}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:“unable to find an element using ‘class chain’, value '/XCUIElementTypeStaticText[label == \"No connection\"]’",“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[RoutingHTTPServer handleRoute:withRequest:response:] + 164\n\t5 WebDriverAgentLib 0x0000000107c9b220 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 64\n\t6 libdispatch.dylib 0x000000018247e950 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 14…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [BaseDriver] Waited for 1703 ms so far
[debug] [WD Proxy] Matched ‘/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/element] with body: {“using”:“class chain”,“value”:"
/XCUIElementTypeStaticText[label == \"No connection\"]”}
[WD Proxy] Got response with status 404: {“value”:{“error”:“no such element”,“message”:“unable to find an element using ‘class chain’, value ‘**/XCUIElementTypeStaticText[label == \"No connection\"]’”,“traceback”:"(\n\t0 WebDriverAgentLib 0x0000000107cb326c FBNoSuchElementErrorResponseForRequest + 288\n\t1 WebDriverAgentLib 0x0000000107cb3070 +[FBFindElementCommands handleFindElement:] + 344\n\t2 WebDriverAgentLib 0x0000000107c7a7cc -[FBRoute_TargetAction mountRequest:intoResponse:] + 180\n\t3 WebDriverAgentLib 0x0000000107c5c198 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 424\n\t4 WebDriverAgentLib 0x0000000107c9a85c -[RoutingHTTPServer handleRoute:withRequest:response:] + 164\n\t5 WebDriverAgentLib 0x0000000107c9b220 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 64\n\t6 libdispatch.dylib 0x000000018247e950 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 14…
[debug] [W3C] Matched W3C error code ‘no such element’ to NoSuchElementError
[debug] [W3C (c83f2546)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (c83f2546)] at XCUITestDriver.doNativeFind (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:130:11)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.findNativeElementOrElements (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:90:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElOrEls (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:23:12)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElOrElsWithProcessing (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:33:12)
[debug] [W3C (c83f2546)] at XCUITestDriver.findElement (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:53:10)
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/element 404 2450 ms - 1234
[HTTP]
method hidedatepickerShowCalendar failed
[ERROR] 2021-11-29 15:02:14.043 [main] Log - method hidedatepickerShowCalendar failed
[ERROR] 2021-11-29 15:02:14.045 [main] Log - The console issue of failed method hidedatepickerShowCalendar is org.openqa.selenium.NoSuchElementException: Can’t locate an element by this strategy: By.chained({By.IosClassChain: **/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeCollectionView/XCUIElementTypeCell/XCUIElementTypeOther/XCUIElementTypeOther})
Screenshot captured for test case:hidedatepickerShowCalendar
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getScreenshot() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getScreenshot’
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[XCUITest] Error getting screenshot: A screen capture was made impossible
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [W3C (c83f2546)] Encountered internal error running command: UnableToCaptureScreen: A screen capture was made impossible
[debug] [W3C (c83f2546)] at errorFromW3CJsonCode (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[debug] [W3C (c83f2546)] at ProxyRequestError.getActualError (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
[debug] [W3C (c83f2546)] at JWProxy.command (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:272:19)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.proxyCommand (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:96:12)
[debug] [W3C (c83f2546)] at getScreenshotFromWDA (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:11:18)
[debug] [W3C (c83f2546)] at wrapped (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C (c83f2546)] at retry (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C (c83f2546)] at retryInterval (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.getScreenshot (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:42:10)
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot 500 1268 ms - 1682
[HTTP]
org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘mohameds-MacBook-Pro.local’, ip: ‘fe80:0:0:0:826:4b54:4c47:c102%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.16’, java.version: ‘1.8.0_291’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {animationCoolOffTimeout: 0, app: /Users/mohamedgamal/Documen…, applicationCacheEnabled: false, autoAcceptAlerts: true, autoGrantPermissions: true, automationName: XCUITest, browserName: , clearSystemFiles: true, databaseEnabled: false, deviceName: Iphone_Mohamed_Gamal, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, locationServicesAuthorized: true, locationServicesEnabled: true, networkConnectionEnabled: true, newCommandTimeout: 300, permissions: {“com.samesystemsapp.sameti…, platform: MAC, platformName: IOS, platformVersion: 15.0.1, sendKeyStrategy: grouped, startIWDP: true, takesScreenshot: true, udid: 00008101-00015D200E91001E, useJSONSource: true, useNewWDA: false, usePrebuiltWDA: true, waitForIdleTimeout: 0, waitForQuiescence: false, wdaEventloopIdleDelay: 3, wdaStartupRetries: 6, wdaStartupRetryInterval: 20000, webStorageEnabled: false, xcodeOrgId: M82244S89Y, xcodeSigningId: iPhone Developer}
Session ID: c83f2546-79a7-42e4-825d-b70dafa1293a
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:45)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:295)
at utilities.AllureListerner.saveFailureScreenShot(AllureListerner.java:45)
at utilities.AllureListerner.onTestFailure(AllureListerner.java:126)
at org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:96)
at org.testng.internal.TestInvoker.runTestResultListener(TestInvoker.java:219)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:656)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.testng.TestRunner.privateRun(TestRunner.java:794)
at org.testng.TestRunner.run(TestRunner.java:596)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
at org.testng.SuiteRunner.run(SuiteRunner.java:276)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
at org.testng.TestNG.runSuites(TestNG.java:1063)
at org.testng.TestNG.run(TestNG.java:1031)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/appium/stop_recording_screen
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.stopRecordingScreen() with args: [null,“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘stopRecordingScreen’
[ffmpeg] [mjpeg @ 0x14901b600] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
[ffmpeg] Consider increasing the value for the ‘analyzeduration’ (0) and ‘probesize’ (5000000) options
[ffmpeg] Input #0, mjpeg, from ‘http://127.0.0.1:9100’:
[ffmpeg] Duration: N/A, bitrate: N/A
[ffmpeg] Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 1200k tbn, 25 tbc
[ffmpeg] Output #0, mp4, to ‘/var/folders/m7/dcnc81p91r3df0cn05js2wdc0000gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’:
[ffmpeg] Output file #0 does not contain any stream
[ffmpeg] Exiting normally, received signal 2.
[ffmpeg]
[DevCon Factory] Releasing connections for 00008101-00015D200E91001E device on 9100 port number
[DevCon Factory] Found cached connections to release: [“00008101-00015D200E91001E:9100”]
[DevCon Factory] Releasing the listener for ‘00008101-00015D200E91001E:9100’
[debug] [iProxy@00008101:9100] Closing the connection
[debug] [DevCon Factory] Cached connections count: 1
[iProxy@00008101:9100] The connection has been closed
[DevCon Factory] Releasing connect[XCUITest] The screen recorder utility has failed to storions for 00008101-00015D200E91001E device on 9100 port number
e he actual screen recording at ‘/var/folde5m[DevCon Factory] rs/m7/dcnc81p91r3df0cNo cachedn05js2wdc00 connections have been found
00gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’
[debug] [W3C (c83f2546)] Encountered internal error running command: Error: The screen recorder utility has failed to store the actual screen recording at ‘/var/folders/m7/dcnc81p91r3df0cn05js2wdc0000gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’
[debug] [W3C (c83f2546)] at Object.errorAndThrow (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:94:35)
[debug] [W3C (c83f2546)] at XCUITestDriver.stopRecordingScreen (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/recordscreen.js:347:11)
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/appium/stop_recording_screen 500 40 ms - 913
[HTTP]
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The screen recorder utility has failed to store the actual screen recording at ‘/var/folders/m7/dcnc81p91r3df0cn05js2wdc0000gn/T/20211029-23870-1v9xljl.e0zkk/appium_6f6fc4.mp4’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘mohameds-MacBook-Pro.local’, ip: ‘fe80:0:0:0:826:4b54:4c47:c102%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.16’, java.version: ‘1.8.0_291’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {animationCoolOffTimeout: 0, app: /Users/mohamedgamal/Documen…, applicationCacheEnabled: false, autoAcceptAlerts: true, autoGrantPermissions: true, automationName: XCUITest, browserName: , clearSystemFiles: true, databaseEnabled: false, deviceName: Iphone_Mohamed_Gamal, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, locationServicesAuthorized: true, locationServicesEnabled: true, networkConnectionEnabled: true, newCommandTimeout: 300, permissions: {“com.samesystemsapp.sameti…, platform: MAC, platformName: IOS, platformVersion: 15.0.1, sendKeyStrategy: grouped, startIWDP: true, takesScreenshot: true, udid: 00008101-00015D200E91001E, useJSONSource: true, useNewWDA: false, usePrebuiltWDA: true, waitForIdleTimeout: 0, waitForQuiescence: false, wdaEventloopIdleDelay: 3, wdaStartupRetries: 6, wdaStartupRetryInterval: 20000, webStorageEnabled: false, xcodeOrgId: M82244S89Y, xcodeSigningId: iPhone Developer}
Session ID: c83f2546-79a7-42e4-825d-b70dafa1293a
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:45)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at io.appium.java_client.screenrecording.CanRecordScreen.stopRecordingScreen(CanRecordScreen.java:72)
at tests.BaseTest.getVideoString(BaseTest.java:418)
at utilities.AllureListerner.onTestFailure(AllureListerner.java:128)
at org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:96)
at org.testng.internal.TestInvoker.runTestResultListener(TestInvoker.java:219)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:656)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.testng.TestRunner.privateRun(TestRunner.java:794)
at org.testng.TestRunner.run(TestRunner.java:596)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
at org.testng.SuiteRunner.run(SuiteRunner.java:276)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
at org.testng.TestNG.runSuites(TestNG.java:1063)
at org.testng.TestNG.run(TestNG.java:1031)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getScreenshot() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getScreenshot’
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:””},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[XCUITest] Error getting screenshot: A screen capture was made impossible
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [W3C (c83f2546)] Encountered internal error running command: UnableToCaptureScreen: A screen capture was made impossible
[debug] [W3C (c83f2546)] at errorFromW3CJsonCode (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[debug] [W3C (c83f2546)] at ProxyRequestError.getActualError (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
[debug] [W3C (c83f2546)] at JWProxy.command (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:272:19)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.proxyCommand (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:96:12)
[debug] [W3C (c83f2546)] at getScreenshotFromWDA (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:11:18)
[debug] [W3C (c83f2546)] at wrapped (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C (c83f2546)] at retry (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C (c83f2546)] at retryInterval (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.getScreenshot (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:42:10)
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot 500 1046 ms - 1682
[HTTP]
method scrollBetweenMonths is starting …
[INFO ] 2021-11-29 15:02:16.728 [main] Log - method scrollBetweenMonths is starting …
[HTTP] --> POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/appium/start_recording_screen
[HTTP] {“options”:{“forceRestart”:true,“videoType”:“h264”,“videoScale”:“1280:720”}}
[debug] [W3C (c83f2546)] Calling AppiumDriver.startRecordingScreen() with args: [{“forceRestart”:true,“videoType”:“h264”,“videoScale”:“1280:720”},“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘startRecordingScreen’
[DevCon Factory] Releasing connections for 00008101-00015D200E91001E device on 9100 port number
[DevCon Factory] No cached connections have been found
[debug] [WD Proxy] Matched ‘/appium/settings’ to command name ‘getSettings’
[debug] [WD Proxy] Proxying [GET /appium/settings] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/appium/settings] with no body
[debug] [WD Proxy] Got response with status 200: {“value”:{“boundElementsByIndex”:false,“mjpegServerFramerate”:10,“screenshotOrientation”:“auto”,“reduceMotion”:false,“elementResponseAttributes”:“type,label”,“screenshotQuality”:1,“mjpegScalingFactor”:100,“keyboardPrediction”:0,“defaultActiveApplication”:“auto”,“mjpegServerScreenshotQuality”:25,“defaultAlertAction”:“accept”,“keyboardAutocorrection”:0,“useFirstMatch”:false,“shouldUseCompactResponses”:true,“customSnapshotTimeout”:15,“dismissAlertButtonSelector”:"",“activeAppDetectionPoint”:“64.00,64.00”,“snapshotMaxDepth”:50,“waitForIdleTimeout”:0,“includeNonModalElements”:false,“acceptAlertButtonSelector”:"",“animationCoolOffTimeout”:2},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[DevCon Factory] Requesting connection for device 00008101-00015D200E91001E on local port 9100, device port 9100
[debug] [DevCon Factory] Cached connections count: 1
[DevCon Factory] Successfully requested the connection for 00008101-00015D200E91001E:9100
[ffmpeg] ffmpeg version 4.4.1 Copyright © 2000-2021 the FFmpeg developers
[ffmpeg] built with Apple clang version 13.0.0 (clang-1300.0.29.3)
[ffmpeg] configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/4.4.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
[ffmpeg]
[ffmpeg] libavutil 56. 70.100 / 56. 70.100
[ffmpeg] libavcodec 58.134.100 / 58.134.100
[ffmpeg] libavformat 58. 76.100 / 58. 76.100
[ffmpeg] libavdevice 58. 13.100 / 58. 13.100
[ffmpeg] libavfilter 7.110.100 / 7.110.100
[ffmpeg] libavresample 4. 0. 0 / 4. 0. 0
[ffmpeg] libswscale 5. 9.100 / 5. 9.100
[ffmpeg] libswresample 3. 9.100 / 3. 9.100
[ffmpeg] libpostproc 55. 9.100 / 55. 9.100
[ffmpeg]
[XCUITest] Screen capture process did not start within 5000ms. Continuing anyway
[XCUITest] Starting screen capture on the device ‘00008101-00015D200E91001E’ with command: ‘ffmpeg -f mjpeg -i http://127.0.0.1:9100 -vf scale=1280:720 -vcodec h264 -y /var/folders/m7/dcnc81p91r3df0cn05js2wdc0000gn/T/20211029-23870-cgkyau.e9psj/appium_580514.mp4’. Will timeout in 180000ms
[debug] [W3C (c83f2546)] Responding to client with driver.startRecordingScreen() result: “”
[HTTP] <-- POST /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/appium/start_recording_screen 200 5156 ms - 12
[HTTP]
method scrollBetweenMonths skipped
[ERROR] 2021-11-29 15:02:21.925 [main] Log - method scrollBetweenMonths skipped
[ERROR] 2021-11-29 15:02:21.926 [main] Log - The console issue of skipped method scrollBetweenMonths is java.lang.Throwable: Method CalendarTest.scrollBetweenMonths()[pri:6, instance:tests.CalendarTest@696b52bc] depends on not successfully finished methods
Screenshot captured for test case:scrollBetweenMonths
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getScreenshot() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getScreenshot’
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[XCUITest] Error getting screenshot: A screen capture was made impossible
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [W3C (c83f2546)] Encountered internal error running command: UnableToCaptureScreen: A screen capture was made impossible
[debug] [W3C (c83f2546)] at errorFromW3CJsonCode (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[debug] [W3C (c83f2546)] at ProxyRequestError.getActualError (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
[debug] [W3C (c83f2546)] at JWProxy.command (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:272:19)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.proxyCommand (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:96:12)
[debug] [W3C (c83f2546)] at getScreenshotFromWDA (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:11:18)
[debug] [W3C (c83f2546)] at wrapped (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C (c83f2546)] at retry (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C (c83f2546)] at retryInterval (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.getScreenshot (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:42:10)
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot 500 1027 ms - 1682
[HTTP]
org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘mohameds-MacBook-Pro.local’, ip: ‘fe80:0:0:0:826:4b54:4c47:c102%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.16’, java.version: ‘1.8.0_291’
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {animationCoolOffTimeout: 0, app: /Users/mohamedgamal/Documen…, applicationCacheEnabled: false, autoAcceptAlerts: true, autoGrantPermissions: true, automationName: XCUITest, browserName: , clearSystemFiles: true, databaseEnabled: false, deviceName: Iphone_Mohamed_Gamal, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, locationServicesAuthorized: true, locationServicesEnabled: true, networkConnectionEnabled: true, newCommandTimeout: 300, permissions: {“com.samesystemsapp.sameti…, platform: MAC, platformName: IOS, platformVersion: 15.0.1, sendKeyStrategy: grouped, startIWDP: true, takesScreenshot: true, udid: 00008101-00015D200E91001E, useJSONSource: true, useNewWDA: false, usePrebuiltWDA: true, waitForIdleTimeout: 0, waitForQuiescence: false, wdaEventloopIdleDelay: 3, wdaStartupRetries: 6, wdaStartupRetryInterval: 20000, webStorageEnabled: false, xcodeOrgId: M82244S89Y, xcodeSigningId: iPhone Developer}
Session ID: c83f2546-79a7-42e4-825d-b70dafa1293a
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:45)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:295)
at utilities.AllureListerner.saveFailureScreenShot(AllureListerner.java:45)
at utilities.AllureListerner.onTestSkipped(AllureListerner.java:196)
at org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:87)
at org.testng.internal.TestInvoker.runTestResultListener(TestInvoker.java:219)
at org.testng.internal.TestInvoker.invokeListenersForSkippedTestResult(TestInvoker.java:447)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:105)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.testng.TestRunner.privateRun(TestRunner.java:794)
at org.testng.TestRunner.run(TestRunner.java:596)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
at org.testng.SuiteRunner.run(SuiteRunner.java:276)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
at org.testng.TestNG.runSuites(TestNG.java:1063)
at org.testng.TestNG.run(TestNG.java:1031)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
[HTTP] --> GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot
[HTTP] {}
[debug] [W3C (c83f2546)] Calling AppiumDriver.getScreenshot() with args: [“c83f2546-79a7-42e4-825d-b70dafa1293a”]
[debug] [XCUITest] Executing command ‘getScreenshot’
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:”"},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[XCUITest] Error getting screenshot: A screen capture was made impossible
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498/screenshot] with no body
[WD Proxy] Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:“A screen capture was made impossible”,“traceback”:""},“sessionId”:“5BB9EC7D-7D62-42F0-BB6A-C1A7535C9498”}
[debug] [W3C] Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[debug] [W3C (c83f2546)] Encountered internal error running command: UnableToCaptureScreen: A screen capture was made impossible
[debug] [W3C (c83f2546)] at errorFromW3CJsonCode (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[debug] [W3C (c83f2546)] at ProxyRequestError.getActualError (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
[debug] [W3C (c83f2546)] at JWProxy.command (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:272:19)
[debug] [W3C (c83f2546)] at runMicrotasks ()
[debug] [W3C (c83f2546)] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[debug] [W3C (c83f2546)] at XCUITestDriver.proxyCommand (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/proxy-helper.js:96:12)
[debug] [W3C (c83f2546)] at getScreenshotFromWDA (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:11:18)
[debug] [W3C (c83f2546)] at wrapped (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C (c83f2546)] at retry (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C (c83f2546)] at retryInterval (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C (c83f2546)] at XCUITestDriver.getScreenshot (/opt/homebrew/Cellar/appium/1.22.0/libexec/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/screenshots.js:42:10)
[HTTP] <-- GET /wd/hub/session/c83f2546-79a7-42e4-825d-b70dafa1293a/screenshot 500 1020 ms - 1682
[HTTP]
Test of 'Calendar_Screen_Tests function is ended

[INFO ] 2021-11-29 15:02:24.031 [main] Log - Test of ‘Calendar_Screen_Tests’ function is ended

[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:14 min
[INFO] Finished at: 2021-11-29T15:02:24+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project check_in: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/mohamedgamal/Documents/Check_In_IOS/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] There was an error in the forked process
[ERROR] Screen shot has been taken
[ERROR] Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
[ERROR] System info: host: ‘mohameds-MacBook-Pro.local’, ip: ‘fe80:0:0:0:826:4b54:4c47:c102%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.16’, java.version: ‘1.8.0_291’
[ERROR] Driver info: io.appium.java_client.ios.IOSDriver
[ERROR] Capabilities {animationCoolOffTimeout: 0, app: /Users/mohamedgamal/Documen…, applicationCacheEnabled: false, autoAcceptAlerts: true, autoGrantPermissions: true, automationName: XCUITest, browserName: , clearSystemFiles: true, databaseEnabled: false, deviceName: Iphone_Mohamed_Gamal, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, locationServicesAuthorized: true, locationServicesEnabled: true, networkConnectionEnabled: true, newCommandTimeout: 300, permissions: {"com.samesystemsapp.sameti…, platform: MAC, platformName: IOS, platformVersion: 15.0.1, sendKeyStrategy: grouped, startIWDP: true, takesScreenshot: true, udid: 00008101-00015D200E91001E, useJSONSource: true, useNewWDA: false, usePrebuiltWDA: true, waitForIdleTimeout: 0, waitForQuiescence: false, wdaEventloopIdleDelay: 3, wdaStartupRetries: 6, wdaStartupRetryInterval: 20000, webStorageEnabled: false, xcodeOrgId: M82244S89Y, xcodeSigningId: iPhone Developer}
[ERROR] Session ID: c83f2546-79a7-42e4-825d-b70dafa1293a
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] Screen shot has been taken
[ERROR] Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
[ERROR] System info: host: ‘mohameds-MacBook-Pro.local’, ip: ‘fe80:0:0:0:826:4b54:4c47:c102%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.16’, java.version: ‘1.8.0_291’
[ERROR] Driver info: io.appium.java_client.ios.IOSDriver
[ERROR] Capabilities {animationCoolOffTimeout: 0, app: /Users/mohamedgamal/Documen…, applicationCacheEnabled: false, autoAcceptAlerts: true, autoGrantPermissions: true, automationName: XCUITest, browserName: , clearSystemFiles: true, databaseEnabled: false, deviceName: Iphone_Mohamed_Gamal, handlesAlerts: true, javascriptEnabled: true, locationContextEnabled: true, locationServicesAuthorized: true, locationServicesEnabled: true, networkConnectionEnabled: true, newCommandTimeout: 300, permissions: {"com.samesystemsapp.sameti…, platform: MAC, platformName: IOS, platformVersion: 15.0.1, sendKeyStrategy: grouped, startIWDP: true, takesScreenshot: true, udid: 00008101-00015D200E91001E, useJSONSource: true, useNewWDA: false, usePrebuiltWDA: true, waitForIdleTimeout: 0, waitForQuiescence: false, wdaEventloopIdleDelay: 3, wdaStartupRetries: 6, wdaStartupRetryInterval: 20000, webStorageEnabled: false, xcodeOrgId: M82244S89Y, xcodeSigningId: iPhone Developer}
[ERROR] Session ID: c83f2546-79a7-42e4-825d-b70dafa1293a
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:656)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

This is looks like -> https://github.com/appium/appium/issues/15309
Did you try to update xCode to 13?

yes iam in xcode 13.1

Hi @gemy862000, did you solve the issue? I ran into the same problem

i reinstalled appium 1.22 by brew >> ```
brew install appium
and be sure that the script using appium 1.22 not appium 1.20 or older

Thanks, I use appium 2.0, no luck till now

Hi @gemy862000 and @Huwei , I was running into the same issue.
Hardware setup:
Phone (iPhone 11/ iOS 15.2.1 Real device
Computer (Macbook Pro 2019/ MacOS Monterrey version 12.2)
When I launch inspector (webdriver agent is running, appium server is running), the app opens on phone side. However, on the server logs (see attached), we have the same 500 error
[debug] e[35m[W3C]e[39m Matched W3C error code ‘unable to capture screen’ to UnableToCaptureScreen
[warn] e[35m[XCUITest]e[39m Error getting screenshot: A screen capture was made impossible
[debug] e[35m[XCUITest]e[39m Taking screenshot with WDA
[debug] e[35m[WD Proxy]e[39m Matched ‘/screenshot’ to command name ‘getScreenshot’
[debug] e[35m[WD Proxy]e[39m Proxying [GET /screenshot] to [GET http://127.0.0.1:8100/session/83C79E79-0F0C-4665-885E-59AACD09C849/screenshot] with no body
[info] e[35m[WD Proxy]e[39m Got response with status 500: {“value”:{“error”:“unable to capture screen”,“message”:"A screen capture was made

What I did to fix
After about a day of being roadblocked, I tried the following:
In terminal
brew install appium (which showed that I had a version of 1.22 appium on my system but was not linked)
followed the commands (Do not force remove… you will lose your webdriver agent Xcode project … THIS IS ONLY to see where this version was located (ie usr/local/lib/bin)

I then checked appium in terminal with appium -v (shows 1.21)
then I decided to npm uninstall -g appium
and then re install (npm install -g appium)
checked version (shows 1.22.2)

Open Xcode, resign Webdriver Agent project (/usr/local/lib/node_modules/appium/node_modules/appium_webdriveragent), and build
Open Appium Inspector (appium server should be running)
Start Session

1 Like

Hi @gasper517483,

**I’ve tried with your steps but with no success. **

OS Version: Monterey
XCode Version: 13.3
Device: Iphone X
IOS Version: 15.2.1
Appium version: 1.22.2 (verified also with appium -v, uninstalled and reinstalled locally using your commands)
Appium inspector version: 2021.12.2

Screenshot cannot be taken, logs below:

[W3C (a1e07b47)] Calling AppiumDriver.getWindowRect() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getWindowRect’

[WD Proxy] Proxying [GET /window/size] to [GET http://127.0.0.1:8100/session/3EE8BDF5-52BB-413D-B69E-157A40686F55/window/size] with no body

[WD Proxy] Got response with status 200: {“value”:{“width”:0,“height”:0},“sessionId”:“3EE8BDF5-52BB-413D-B69E-157A40686F55”}

[W3C (a1e07b47)] Responding to client with driver.getWindowRect() result: {“width”:0,“height”:0,“x”:0,“y”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/window/rect 200 109 ms - 44

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/source

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getPageSource() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getPageSource’

[WD Proxy] Matched ‘/source’ to command name ‘getPageSource’

[WD Proxy] Proxying [GET /source] to [GET http://127.0.0.1:8100/session/3EE8BDF5-52BB-413D-B69E-157A40686F55/source] with no body

[WD Proxy] Got response with status 500: {“value”:{“error”:“unknown error”,“message”:“Cannot get ‘xml’ source of the current application”,“traceback”:""},“sessionId”:“3EE8BDF5-52BB-413D-B69E-157A40686F55”}

[W3C] Matched W3C error code ‘unknown error’ to UnknownError

[W3C (a1e07b47)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot get ‘xml’ source of the current application

[W3C (a1e07b47)] at errorFromW3CJsonCode (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)

[W3C (a1e07b47)] at ProxyRequestError.getActualError (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)

[W3C (a1e07b47)] at JWProxy.command (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:272:19)

[W3C (a1e07b47)] at processTicksAndRejections (internal/process/task_queues.js:85:5)

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/source 500 56 ms - 945

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 200 2 ms - 42

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 1 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 1 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 2 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 1 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 2 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 1 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 1 ms - -

[HTTP]

[HTTP] --> GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts

[HTTP] {}

[W3C (a1e07b47)] Calling AppiumDriver.getTimeouts() with args: [“a1e07b47-105d-45e0-9f79-173b0795bc96”]

[XCUITest] Executing command ‘getTimeouts’

[W3C (a1e07b47)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}

[HTTP] <-- GET /wd/hub/session/a1e07b47-105d-45e0-9f79-173b0795bc96/timeouts 304 1 ms - -

Solved after WDA new setup, cache clean on both device and DerivedData (XCode)

I’ve used the below desired caps:

{
“appium:udid”: “6f9b9040f5d0bdd0b538d38d491f50c887b5af87”,
“appium:platformName”: “IOS”,
“appium:automationName”: “XCUITest”,
“appium:deviceName”: “iphoneX”,
“appium:bundleId”: “com.test”,
“appium:xcodeOrgId”: “xxxxxx”,
“appium:xcodeSigningId”: “iPhone Developer”
}

Note: WDA needs to be running before inspector (“Automation Running” should appear on the screen)

cd /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=6f9b9040f5d0bdd0b538d38d491f50c887b5af87’ test -allowProvisioningUpdates