Using puppeteer or playwright, is there a way to update the args initially passed in the launch method?

Viewed 329

I want to update the source of the file passed to the arg --use-file-for-fake-video-capture. Is there a way to update it after the browser instance has been initialized or will this require me to reinitialize the instance with the new source of the file?

1 Answers

No, it is not possible to modify launch args once the Chromium instance is running. Not even with puppeteer.connect() to an existing browser instance, as it doesn't accept args the same way as puppeteer.launch(). You will need to relaunch the browser.

Related