It seems that I cannot auto-select a screen sharing source when running the test in headless mode.
I managed to auto-select a tab using this ChromeDriver argument --auto-select-tab-capture-source-by-title=Example Domain, and it works. However, when I run the test headlessly, it doesn't, any suggestions?
I ran into this problem recently and was able to make it work by using the
headless=newargument for ChromeDriver.From Selenium's web site: