Closed imbdb closed 1 year ago
Workaround
We can use overridePermissions instead of the argument --use-fake-ui-for-media-stream
const context = browser.defaultBrowserContext()
await context.overridePermissions("<ORIGIN_OF_TEST_PAGE>", ['camera', 'microphone'])
replace <ORIGIN_OF_TEST_PAGE>
with the origin you need to test
Closing Issue as I think the workaround is the way to go.
You are saviour man
I need to record a page which needs access to webcam and mic. After passing
"--use-fake-ui-for-media-stream"
, stream is not working and recording results in a zero byte page.example