auto-select-desktop-capture-source semantics: doesn't quite do what I expect

1,055 views
Skip to first unread message

Stephen Gross

unread,
Jan 15, 2022, 1:41:45 PM1/15/22
to Chromium-discuss
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

Stephen Gross

unread,
Jan 18, 2022, 10:08:40 PM1/18/22
to Chromium-discuss, Stephen Gross
Update: I found a useful note here. In particular, I omitted the enclosing double-quotes around <Entire Screen>. That seems to do the trick!
Reply all
Reply to author
Forward
0 new messages