Integrating Undetected-Chromedriver with SeleniumBase to Load CRX Extensions #2763
-
Hello, I am currently using SeleniumBase for my testing needs and have been leveraging the undetected-chromedriver (uc) for anti-detection capabilities. However, I am facing issues when trying to load a Chrome extension (CRX file) while using the undetected mode provided by SeleniumBase. Here's a snippet of what I tried that does not seem to work: from seleniumbase import Driver extension_path = r'C:\Path\To\Extension\Urban-VPN-Proxy.crx' driver = Driver( This method fails to load the extension, whereas using the standard Selenium approach with ChromeOptions to add the extension works fine: from selenium import webdriver options = webdriver.ChromeOptions() service = Service(executable_path=ChromeDriverManager().install()) Could you provide guidance on how to properly integrate CRX extensions with undetected-chromedriver within the SeleniumBase framework? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's been a limitation since the original undetected-chromedriver, and even the maintainer of that couldn't figure it out: If you can unzip the extension to a dir, you can pass it in as |
Beta Was this translation helpful? Give feedback.
That's been a limitation since the original undetected-chromedriver, and even the maintainer of that couldn't figure it out:
https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues?q=is%3Aissue+is%3Aopen+CRX
If you can unzip the extension to a dir, you can pass it in as
extension_dir
. That works.