Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error loading extension" when loading multiple extension directories on Windows #3468

Closed
mkuchuman opened this issue Feb 1, 2025 · 4 comments · Fixed by #3471
Closed

"Error loading extension" when loading multiple extension directories on Windows #3468

mkuchuman opened this issue Feb 1, 2025 · 4 comments · Fixed by #3471
Labels
bug Uh oh... Something needs to be fixed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@mkuchuman
Copy link

Hi, when I load more than one extension it doesn't work for me

Tried this example from the issue Load extensions in UC Mode #1817

from seleniumbase import Driver, SB

driver = Driver(uc=True, extension_dir="temp/disable_csp,temp/ad_block")
try:
driver.get("https://nowsecure.nl/#relax")
import pdb; pdb.set_trace()
finally:
driver.quit()

Only the first extension loads
For the second extension I get

Error loading extension
Failed to load extension from:
C:\Program Files\Google\Chrome\Application\132.0.6834.160\temp\ad_block
The manifest file is missing or unreadable.

I tried different extensions, regardless of the second extension it does not load
If you change the order of extensions, then the extension that was not loaded before is loaded, and the one that was loaded is not loaded

@mdmintz mdmintz changed the title Load extensions in UC Mode "Error loading extension" when loading multiple extension directories on Windows Feb 2, 2025
@mdmintz
Copy link
Member

mdmintz commented Feb 2, 2025

Thanks for finding this. Looks like the issue is specific to Windows, and the issue occurs when loading multiple extension directories regardless of using UC Mode. I'll push a fix very soon.

@mkuchuman
Copy link
Author

You are always welcome, thanks for creating SeleniumBase it makes my life and work much easier

@mdmintz mdmintz added bug Uh oh... Something needs to be fixed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Feb 2, 2025
@mdmintz
Copy link
Member

mdmintz commented Feb 2, 2025

This was resolved in 4.34.6 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.34.6

@mkuchuman
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh oh... Something needs to be fixed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants