add_extension doesn't work with undetected_chromedriver
See original GitHub issueI’m trying to add a chrome extension to selenium-wire undetected_chromedriver But it doesn’t seem to work. I tried using just selenium-wire webdriver and it works fine. Test code:
from seleniumwire.undetected_chromedriver import Chrome, ChromeOptions
op = ChromeOptions()
op.add_extension("/home/moaiad/Downloads/extension_1_0_0_0.crx")
driver = Chrome(options=op)
driver.get("https://www.google.com/")
- Operating system: Pop-os 20 (ubuntu based)
- selenium-wire version: 4.6.0
- pip version 19.3.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Cannot add Extension to chrome V2 · Issue #154 - GitHub
No. Extensions do not work in combination with remote debugging (which is used by this module).
Read more >Cannot add extension crx file chrome - Stack Overflow
Chrome always open but no extensions. did i do wrong somewhere? one more thing i use undetected-chromedriver.
Read more >undetected-chromedriver - PyPI
Optimized Selenium Chromedriver patch which does not trigger anti-bot ... Tested until current chrome beta versions; Works also on Brave Browser and many ......
Read more >undetected_chromedriver如何使用扩展- AngDH - 博客园
import undetected_chromedriver as uc option = uc.ChromeOptions() option.add_argument('--load-extension=D:\\chrome_proxy') driver = uc.
Read more >undetected_chromedriver如何使用扩展_angdh的技术博客
use this add extension folder in chrome · import undetected_chromedriver as uc option = uc.ChromeOptions() · url = "https://ip138.com/"
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 Free
Top 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
@notmoaiad Download the source code of the extension and extract it to a folder and use this option. You can find the source code in the github releases of the extension or can download the source code with some website available or download crx and convert to zip and extract and use it here. You just have to do some google if source code downloader is needed.
op.add_argument("--load-extension=/home/moaiad/Downloads/extension_1_0_0_0")
Thanks for confirming @notmoaiad .
Maybe worth raising as an issue with undetected_chromedriver in that case. I’ll close this one for now.