Discussion:
[chromium-discuss] how to auto select chrome tab page to do desktop capture
li zs
2018-06-19 03:48:37 UTC
Permalink
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,
--
--
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-discuss+***@chromium.org.
PhistucK
2018-06-19 08:26:09 UTC
Permalink
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*
Post by li zs
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
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,
--
--
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
--
--
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-discuss+***@chromium.org.
li zs
2018-06-19 09:41:22 UTC
Permalink
Very greatful!!! You help me fixed my big problem. i never thought about
the source name would come from the document title. Thanks again.
Post by PhistucK
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*
Post by li zs
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
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,
--
--
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
--
--
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-discuss+***@chromium.org.
w***@popinvideobanking.com
2018-07-24 19:48:39 UTC
Permalink
Hey, Can you give me an example of how you implemented this code. I am
having the same issue.

Thanks!
Post by li zs
Very greatful!!! You help me fixed my big problem. i never thought about
the source name would come from the document title. Thanks again.
Post by PhistucK
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*
Post by li zs
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
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,
--
--
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
--
--
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-discuss+***@chromium.org.
Loading...