Extensions support in headless Chrome
Reported by
krabo...@gmail.com,
Mar 28 2017
|
|||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36 Steps to reproduce the problem: 1. Use Chrome with Selenium 2. Add extension with `background.js` script 3. Run in headless mode What is the expected behavior? Usual output as in windowed mode What went wrong? Got error: selenium.common.exceptions.WebDriverException: Message: unknown error: failed to wait for extension background page to load: chrome-extension://jcolbbihfiphppdfbkbhmiabgaomajdf/_generated_background_page.html from unknown error: page could not be found: chrome-extension://jcolbbihfiphppdfbkbhmiabgaomajdf/_generated_background_page.html (Driver info: chromedriver=2.28.455506 (18f6627e265f442aeec9b6661a49fe819aeeea1f),platform=Linux 4.8.0-41-generic x86_64) Did this work before? N/A Chrome version: 57.0.2987.110 Channel: stable OS Version: Ubuntu 16.10 Flash Version: I failed to find information about extensions in headless mode. This is the only thread where it was mentioned: https://bugs.chromium.org/p/chromium/issues/detail?id=604324#c13 But I don't get if it would be done in headless mode or just fixed in chromedriver (and the latest version can start in the headless mode so the workaround has been applied). For me it is a crucial feature as I need to get a content of CSV files programmatically without downloading them and in Chrome this behaviour can be introduced only via plugins.
,
Mar 31 2017
Headless mode doesn't currently support extensions, and it's not clear whether we can support them easily -- although we are doing some initial feasibility analysis. FWIW, general headless support for ChromeDriver/Selenium is tracked in issue 604324 .
,
Mar 31 2017
,
May 15 2017
,
Jun 22 2017
To give an update, we've decided against implementing extension support in headless mode for now because supporting all the required features is rather complex. Full analysis: https://docs.google.com/document/d/1OeUik1MZb1qSQ_Dnf1kIYcyCgLYRZHg1GlZo06bsKx4/edit#heading=h.o067l9gdl1jy
,
Jun 22 2017
,
Jun 29 2017
Small problem here: * Chromedriver requires an extension to run correctly (automation-extension). * Headless chrome, designed to be used for automated testing, does not support extensions. * Without that extension, basic functionality like resizing the window is broken (and whatever the default size is, it's hiding elements my tests are trying to interact with). See this file for where it's activating it: https://codesearch.chromium.org/chromium/src/chrome/test/chromedriver/chrome_launcher.cc?l=769 Headless chrome is supposed to be a big win for automated testing, but by blocking extensions you've blocked the supposedly right way to do automated testing with Chrome. The efforts that went into the headless flag are a lot less worthwhile without that ability. Either Chromedriver needs to update to not need the extension, or headless needs to support automation-extension. In the meantime, I guess I'll look into xvfb.
,
Jun 29 2017
Ah, I see that jzfeng@chromium.org is already way ahead on the issue I just posted as part of https://bugs.chromium.org/p/chromium/issues/detail?id=604324.
,
Oct 23 2017
Issue chromedriver:2071 has been merged into this issue.
,
Oct 31 2017
,
Nov 2 2017
Issue chromedriver:2115 has been merged into this issue.
,
Dec 11 2017
,
Jan 5 2018
Hi everyone,is there a plan about possible implementation of extension support ? Thanks
,
Jan 8 2018
See #5 -- implementing extension support in headless mode isn't really feasible right now. I'll close this issue accordingly.
,
Jan 12 2018
Issue chromedriver:2217 has been merged into this issue.
,
Mar 19 2018
How can we keep updated if this gets re-prioritized as something that is important to fix?
,
Mar 19 2018
Issue chromedriver:2342 has been merged into this issue.
,
Oct 25
Any update about extension support? I was looking for How can I use chrome headless with extension. Thank you?
,
Oct 25
They decided it was too hard, and refuse to do the work or allow it to be done.
,
Jan 3
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by jmukthavaram@chromium.org
, Mar 30 2017