-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#appium #mac2-driver #macos #ui-automation #screen-recording #329
Comments
I don't think it is possible to disable that banner as this is Apple's own security feature. |
ffmpeg / quicktimeplayer / screencapture |
I've created another PR to enable screen recording over native APIs provided by XCTest itself. I believe screen recordings made via these APIs should not show the annoying overlay |
Thank you for creating the PR for screen recording improvement. Having recordings without overlay would definitely enhance the user experience. Looking forward to trying out this native XCTest-based solution. |
The PR has been merged and published in the driver version 2.1.0 |
driver.execute_script('macos: listDisplays') driver.execute_script('macos: startNativeScreenRecording',{'displayId':1}) driver.execute_script('macos: getNativeScreenRecordingInfo') driver.execute_script('macos: stopNativeScreenRecording') I hope to add a parameter to save the recorded video directly to a location that can be specified by the test machine, such as /tmp/xx.mp4 |
2025-02-08 12:16:11:629 - [154d3af1][Mac2Driver@5d3b] Encountered internal error running command: Error: The screen recording identified by DBF9B67F-7180-441A-B45C-CD6CB18C96CD has not been found. Is it accessible? |
How do you execute your appium server? If from Terminal then make sure it has the "Full Disk Access" permission enabled in System Preferences -> Privacy & Security tab |
Also make sure the appropriate screen recording is present on the local file system by executing the following command: |
I've added an explicit comment about this requirement to the docs and improved the exception message: #331 |
It is true. However, after calling stopNativeScreenRecording, calling startNativeScreenRecording again will result in an error,getNativeScreenRecordingInfo return none. UnknownError: An unknown server-side error occurred while processing the command. Original error: Error Domain=XCTDaemon.ScreenRecordingError Code=0 "Already recording, there can only be one screen recording at a time." UserInfo={NSLocalizedFailure=Failed to start screen recording., NSLocalizedFailureReason=Already recording, there can only be one screen recording at a time., NSLocalizedRecoverySuggestion=Stop the currently active screen recording first and try again.} ➜ Daemon Containers ls ➜ Daemon Containers rm -rf * startNativeScreenRecording |
This might be a valid error. Recorded videos are usually quite large and need lots of space, so be careful about the amount of space left on the home partition |
Please provide a proper issue report for this one including the full server log and the client code example which reproduces it. |
DescriptionAfter completing one full recording cycle (start -> get info -> stop), attempting to start a new recording fails. Steps to Reproduce
code options = AppiumOptions() driver = webdriver.Remote('http://10.93.1.112:4723', options=options) driver.execute_script('macos: startNativeScreenRecording') driver.execute_script('macos: startNativeScreenRecording')` appium server log
|
Unfortunately I cannot reproduce the above issue locally. Please provide the full log, including the output of the previous |
2025-02-08 20:14:42:548 [Appium] Welcome to Appium v2.11.5 (REV b6fafba4864d65acabf966415e14b2dd86d81e1a) User defaults from command line: Build settings from command line: |
I assume this might be an Apple issue, since the video recording feature has only been officially enabled since Xcode SDK 15. Please update your Xcode and try again |
My macOS version is 14.4, and Xcode version is 15.3 |
Even though Xcode is fairly new it still uses an old SDK for compilation. Nevertheless I don't have any other good advices there, except of updating/upgrading Xcode/macOS |
Please tell me your Mac OS version and Xcode version |
macOS 15.2, Xcode 16.2 |
After upgrading to the latest versions (macOS 15.3 and Xcode 16.2), the Environment details:
While this works well on updated systems, I understand this may not be a viable solution for everyone. Many testing environments are running on older hardware or systems that cannot be upgraded due to various constraints (hardware limitations, compatibility requirements, or organizational policies). For those who cannot upgrade, unfortunately, this remains a known limitation. You may need to:
If anyone has found solutions for older versions, please feel free to share them here. |
"When using Mac2 driver with Appium for Mac UI automation testing, there's a notification banner showing 'Automation Test Running' on the screen. This banner interferes with screen recording quality. Is there a way to disable or hide this notification banner during test execution?"
The text was updated successfully, but these errors were encountered: