Using --use-file-for-fake-video-capture for chrome options in selenium

400 views
Skip to first unread message

Sameer Joshi

unread,
Mar 30, 2022, 2:08:41 PM3/30/22
to Chromium-discuss
Hi,

I want to stream a fake video stream from camera using Selenium library in robot framework. 

I tried using --use-file-for-fake-video-capture option . However, facing issues where it says its an unknown option. 

Following is the code in robot file: 

Call Method ${chrome_options} add_argument --use-file-for-fake-video-capture=${MPJPEG_FILE}

where $MPJPEG_FILE} is set to point to the y4m file. 

Following is the error I get : 
Calling method 'add_argument' failed: TypeError: ArgOptions.add_argument() got an unexpected keyword argument '--use-file-for-fake-video-capture'

Any idea what could I be doing wrong? 

Thanks,

Sameer Joshi 

Reply all
Reply to author
Forward
0 new messages