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.

add_extension doesn't work with undetected_chromedriver

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pawanpaudel93commented, Apr 7, 2022

@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")

0reactions
wkeelingcommented, Jul 18, 2022

Thanks for confirming @notmoaiad .

Maybe worth raising as an issue with undetected_chromedriver in that case. I’ll close this one for now.

Read more comments on GitHub >

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

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