Unable to screenshare using selenium browsers

As mentioned in the title, we have some selenium automated tests that used to be able to successfully screenshare on our macs locally but started to fail after an update a while back. I'm not sure which update caused the issues but now they fail as if it's permissions related. I've tried to make all changes suggested by others who have reported screenshare issues such as enabling screensharing for all browsers, I've even added intellij and chromedrivers to this list to see if it would help but was unsuccessful. My screen sharing toggle is turned on as well already in settings. Any suggestions or fixes for this issue?


It appears to be permissions related because trying to share screen using the chromium browsers immediately fails upon selecting a screen/window to share and we see the same error in the console that's given when I've turned permissions off for regular chrome browser. If I logged in with the same user in a regular chrome session, the screensharing works.

MacBook Pro 15″, macOS 13.2

Posted on Feb 26, 2025 05:58 AM

Reply
4 replies

Feb 27, 2025 05:12 AM in response to MrHoffman

Only errors in the logs at the failure is 'failed to start screen share. reason: cancel'. The window to select a window/screen briefly pops up and once you select one, it closes, tries to share, and then ends within a second with this error message. But as mentioned previously, same user during same session, we can go into a regular chrome browser follow same steps and share successfully.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unable to screenshare using selenium browsers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.