Need Suggestions to Automate Chrome Screen Sharing Dialog (System-Level) on macOS selenium with java

62 views
Skip to first unread message

Noushad Pathan

unread,
Jun 29, 2025, 10:28:45 AMJun 29
to Selenium Users

Hi everyone,

I'm currently automating a flow that involves initiating screen sharing in Chrome on macOS. As you may know, the screen sharing popup is a system-level dialog, and its controls (like "Entire Screen", "Window", "Chrome Tab", and the "Share" button) are not part of the DOM, so traditional Selenium or Appium locators won't work. So, i tried with  Java’s Robot class to simulate keyboard navigation and clicks. While this sometimes works, it's not consistent or reliable, especially across different machines or resolutions, can anyone pls help me on this?


Screenshot_3.png

David

unread,
Jul 2, 2025, 7:15:35 PMJul 2
to Selenium Users
Try image recognition GUI automation tools? Like Sikuli as an example. If using specific platform like Windows for example, could try other Win32 automation tool to handle the system level dialog. e.g. AutoIt

amit sharma

unread,
Jul 3, 2025, 2:58:38 PMJul 3
to seleniu...@googlegroups.com
Great suggestion David!

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/7b3ac7c4-89c9-4c4c-95d8-dcfe1c0b8152n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages