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 5:58 AM

Reply
4 replies
Sort By: 

Feb 27, 2025 5: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.

Reply

Feb 27, 2025 5:21 AM in response to spat109

I’d update macOS 13.2 to 13.7.4, update the installed Python, and update Selenium WebDriver, then check if the folks in the Selenium forum recognize this.


It may well be macOS or the local configuration involved here, but I’m less than familiar with Selenium WebDriver.


Reply

Feb 27, 2025 1:37 PM in response to MrHoffman

I'm actually on Sonoma 14.7.1 currently, we are using java 17 for our testing, and selenium version 4.2. I will check with the team about updating the selenium version to the latest as it's a very large repo. Will make a post in the selenium support group to check there for some help

Reply

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.