how to auto select chrome tab page to do desktop capture

2,035 views
Skip to first unread message

li zs

unread,
Jun 19, 2018, 2:50:25 AM6/19/18
to Chromium-discuss
Our team afford a chrome extension to do desktop capture, the source contains screen,window and tab.

In the automation testing(using remote selenium hub to start chrome instance), if i add option:
chromeOptions.addArguments("auto-select-desktop-capture-source=Entire screen") then it works fine to select the whole screen to capture,

but how to auto select one chrome tab page?  

i try chromeOptions.addArguments("auto-select-desktop-capture-source=Tab 1") but it does not work.

Please help, this block my automation testing, the desktop pop up window could not be control by selenium(no Robot, because it connect to a remote selenium hub).

Thank you in advance,

PhistucK

unread,
Jun 19, 2018, 4:26:59 AM6/19/18
to lz...@sina.cn, Chromium-discuss
Did you try to specify the name (document.title basically) of the tab? I think the source name is the displayed name in the picker.

PhistucK


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

li zs

unread,
Jun 19, 2018, 5:41:22 AM6/19/18
to Chromium-discuss, lz...@sina.cn
Very greatful!!! You help me fixed my big problem. i never thought about the source name would come from the document title. Thanks again.

wpra...@popinvideobanking.com

unread,
Jul 26, 2018, 4:38:22 PM7/26/18
to Chromium-discuss, lz...@sina.cn
Hey, Can you give me an example of how you implemented this code. I am having the same issue.

Thanks!
Reply all
Reply to author
Forward
0 new messages