Hello, now in my project i have config file there is launchOptions for media stream and it works goods.
projects: [ { name: 'Chrome', use: { ...devices['Desktop Chrome'], launchOptions: { args: [ '--use-fake-device-for-media-stream',
--use-file-for-fake-video-capture=${fakeVideoCaptureFile}, '--use-fake-ui-for-media-stream', ], }, }, },
but now i need to pass different file to each test and try pass each describe different args, but its not working. Maybe some can check what i do wrong?
test.beforeEach(async ({ page }) => { const browser = await chromium.launch({ // launchOptions: { args: ['--use-fake-device-for-media-stream',
--use-file-for-fake-video-capture=${fakeOtherVideoCaptureFile}`, '--use-fake-ui-for-media-stream'],
// },
})
await browser.newContext({
permissions: ['camera'],
})
})`
This thread is trying to answer question "How can I pass different configuration files to each test using launchOptions for media stream?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].