Headless mode does not load enabled browser extension
See original GitHub issueRunning puppeteer with an enabled browser extension in headless mode does not invoke this browser extension. If I turn off the headless mode it works as expected.
Since it’s explicit listed with headless: false
in the docs, it seems to be the correct behaviour, but also unexpected (at least for me). Would be interested why extensions are limited that way in puppeteer.
const browser = await puppeteer.launch({
headless: false,
args: [
'--disable-extensions-except=/path/to/extension/',
'--load-extension=/path/to/extension/',
]
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Is it possible to run Google Chrome in headless mode with ...
You can run Chrome with extensions headless using Xvfb. Install Xvfb. On Fedora sudo dnf install xorg-x11-server-Xvfb; xvfb-run ...
Read more >706008 - Extensions support in headless Chrome - Monorail
Headless mode doesn't currently support extensions, and it's not clear whether we can support them easily -- although we are doing some ...
Read more >Getting Started with Headless Chrome - Chrome Developers
The easiest way to get started with headless mode is to open the Chrome ... you may not need to programmatically script Headless...
Read more >Browsers | Concepts | Guides | Docs - TestCafe
Note that when you run tests in a remote browser, you cannot take screenshots or ... Use the :headless parameter to launch a...
Read more >How to install the unpacked extension in Chrome - Webkul Blog
Then Select Extensions. Go to extensions. You may directly open extensions using chrome://extensions; Now, Enable developer mode.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
anything new or planned here? or a workaround?
Hey folks, thanks for updating the docs to note that Chrome Headless doesn’t currently support extensions. I’m curious about that closing this issue—where is adding headless support for extensions tracked? Glad to file an issue somewhere if one doesn’t exist.