question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Headless mode does not load enabled browser extension

See original GitHub issue

Running 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:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wernerwernerwerner888commented, May 6, 2020

anything new or planned here? or a workaround?

1reaction
wearherecommented, Oct 14, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found