Matt Kellough
Matt Kellough

Reputation: 41

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

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?

Upvotes: 3

Views: 918

Answers (1)

theDavidBarton
theDavidBarton

Reputation: 8861

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.

Upvotes: 1

Related Questions