I'm using Selenium to test a Chrome Extension that does video-recording. When the extension requests the video record step, a Chrome-owned dialog pops up ("Share your entire screen"). I want to automate the UI process of click-on-the-entire-screen-option and click-on-the-share-button.
I have tried using '--auto-select-desktop-capture-source="Entire screen"' to automate the selection-and-sharing of the screen. However, despite providing this flag value when starting Chrome, it appears to have no effect at runtime.
I see
2 other related questions in this forum on the subject, though neither really addresses my question. Can anyone (1) confirm the intended effect of the --auto-select... flag, and/or (2) advise whether there's a best practice for automating this portion of the UI?
Thanks,
--Steve