1 Answer
- Newest
- Most votes
- Most comments
0
Background: The WDA version on Device Farm is always selected based on the Appium version you select. Device Farm does not change the default mapping of WDA to Appium on a fresh setup. The local setup should have the same version mapping unless it is explicitly changed by the customer.
Pointers to check:
- Looking at Appium repo and other forums, it seems that this may be a known issue where the screenshot is taken in spite of the exception being thrown https://stackoverflow.com/questions/30714210/screenshot-exception-screenshot-has-been-taken
- What is the Appium version you are using? I would suggest using 1.19.0 if you are not using it.
- When you mentioned, you are able to reproduce it locally do you mean that you are getting the same exception locally on iO S15.0.2?
answered 2 years ago
Relevant content
- asked 4 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
Please find answers to key pointers
Screenshot is not being taken, as appium log clearly shows: 2021-12-27 07:56:11:876 - [35m[Xcode][39m 2021-12-27 07:56:11:877 - [35m[WD Proxy][39m Got response with status 500: {"value":{"error":"unable to capture screen","message":"Error Domain=XCTDaemonErrorDomain Code=39 "Legacy screen requests are no longer supported" UserInfo={NSLocalizedDescription=Legacy screen requests are no longer supported}","traceback":""},"sessionId":"5E1E2823-42C0-44DA-B2C3-EBBDF16B4C98"} 2021-12-27 07:56:11:877 - [debug] [35m[W3C][39m Matched W3C error code 'unable to capture screen' to UnableToCaptureScreen 2021-12-27 07:56:11:877 - [35m[XCUITest][39m Error getting screenshot: Error Domain=XCTDaemonErrorDomain Code=39 "Legacy screen requests are no longer supported" UserInfo={NSLocalizedDescription=Legacy screen requests are no longer supported}
I am using Appium version 1.19.0, and which by default uses prebuilt WDA version V6.
Locally, I am not getting same exception, rather some exception, which think because of Xcode version mismatch.
I am using same yml file for running tests on iOS 13.x and 14.x, which is working, but not for iOS 15.x