You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Chrome Beta (139+) does not support loading extensions with browser flags #36459
Is there another way to load extensions for playwright testing? Will we need to switch over to chrome for testing? It doesn't seem like it is currently supported by playwright and not currently planned: #23694
Reacted by Graham Langford, Todd Schiller, James DeMeuse, Eduardo Fungairino, Johnny Metz, fregante, Anthony Castro, Dan Bjorge, Víctor Parra, Devik and 1 more
Extensions only work in Chrome / Chromium launched with a persistent context. Use custom browser args at your own risk, as some of them may break Playwright functionality.
We switched over to 'chromium' for now, but it does not give us the same level of confidence. We would like to continue testing against the same browser that our users are using to make sure that we catch any potential regressions in our changes, but also to catch any new ones that might be coming down the line from chrome itself before it starts impacting our users. Browser extensions are still in a pretty volatile space, so we want to be able to catch any browser-specific issues before our users do.
Extensions only work in Chrome / Chromium launched with a persistent context.
Loading extensions in Chrome no longer works due to them dropping the feature flag support. Can playwright at least update the documentation to reflect this?
Eduardo Fungairino (@fungairino) I am having the same problem as you, where our chrome-dev weekly run is impacted by this. Were you able to figure out how to use chromium to continue to test against upcoming beta releases? Was that supported by Playwright config somehow, or did you have to manage downloading chromium versions yourself?
@fungairino I am having the same problem as you, where our chrome-dev weekly run is impacted by this. Were you able to figure out how to use chromium to continue to test against upcoming beta releases? Was that supported by Playwright config somehow, or did you have to manage downloading chromium versions yourself?
Unfortunately we have had to stop testing against Chrome altogether. Now our e2e CI action only tests against Chromium and Edge.
There might be a workaround to this by using CDP, but I have not had the time to investigate this.
@fungairino I am having the same problem as you, where our chrome-dev weekly run is impacted by this. Were you able to figure out how to use chromium to continue to test against upcoming beta releases? Was that supported by Playwright config somehow, or did you have to manage downloading chromium versions yourself?
Unfortunately we have had to stop testing against Chrome altogether. Now our e2e CI action only tests against Chromium and Edge. There might be a workaround to this by using CDP, but I have not had the time to investigate this.
Chris Lanzo (@cjlanzo)Eduardo Fungairino (@fungairino)
Maybe you can temporarily use Chrome for Testing instead of the branded Chrome? It seems closer to the branded version than Chromium.
It works well in my projects.
How to replace --disable-extensions-except and --load-extension in Chrome 139?
Since Google Chrome version 139, the command-line flags:
no longer seem to work.
In Chrome 138 and below, I was able to launch Chrome with a specific unpacked extension for automation/testing purposes using Python:
Activity
fungairino commentedon Jun 26, 2025
I would also recommend updating the documentation to reflect that extensions cannot be loaded in chrome.
playwright/docs/src/chrome-extensions-js-python.md
Line 9 in 98caf34
mxschmitt commentedon Jun 27, 2025
Would
channel: 'chromium'work for you?fungairino commentedon Jun 27, 2025
We switched over to 'chromium' for now, but it does not give us the same level of confidence. We would like to continue testing against the same browser that our users are using to make sure that we catch any potential regressions in our changes, but also to catch any new ones that might be coming down the line from chrome itself before it starts impacting our users. Browser extensions are still in a pretty volatile space, so we want to be able to catch any browser-specific issues before our users do.
fungairino commentedon Jul 7, 2025
I'm not sure the documentation update fixed the issue as described, Max Schmitt (@mxschmitt) ?
The documentation in the PR still states:
Loading extensions in Chrome no longer works due to them dropping the feature flag support. Can playwright at least update the documentation to reflect this?
cjlanzo commentedon Jul 18, 2025
Eduardo Fungairino (@fungairino) I am having the same problem as you, where our chrome-dev weekly run is impacted by this. Were you able to figure out how to use chromium to continue to test against upcoming beta releases? Was that supported by Playwright config somehow, or did you have to manage downloading chromium versions yourself?
fungairino commentedon Jul 18, 2025
Unfortunately we have had to stop testing against Chrome altogether. Now our e2e CI action only tests against Chromium and Edge.
There might be a workaround to this by using CDP, but I have not had the time to investigate this.
saishiyuu commentedon Jul 22, 2025
Chris Lanzo (@cjlanzo) Eduardo Fungairino (@fungairino)
Maybe you can temporarily use Chrome for Testing instead of the branded Chrome? It seems closer to the branded version than Chromium.
It works well in my projects.
https://googlechromelabs.github.io/chrome-for-testing/
Here's how I configured it in my playwright.config.ts:
Azedize commentedon Aug 8, 2025
How to replace --disable-extensions-except and --load-extension in Chrome 139?
Since Google Chrome version 139, the command-line flags:
no longer seem to work.
In Chrome 138 and below, I was able to launch Chrome with a specific unpacked extension for automation/testing purposes using Python:
carl-jin commentedon Aug 11, 2025
This appears to be caused by the Chrome 139 update — the "--load-extension=" parameter seems to have stopped working.
Fix Playwright tests by switching from Chrome to Chromium channel
Fix Playwright tests by switching from Chrome to Chromium channel (#846)
Fix Playwright tests by switching from Chrome to Chromium channel (#846)