Closed NimeMolla closed 1 year ago
Sure if you want to load several extensions you've to provide a comma-separated list of path to those. Otherwise you'll end up with only the last one loaded.
extension_paths = (path1, path2, ...)
options.add_argument(f"--load-extension={','.join(extension_paths)}")
Zipped extensions (aka .crx
) can't be loaded via command lines. There's options.add_extension(crx_path)
available.
I haven't tried it tho. I'm not sure it would work since uc has already launched Chrome when the driver is instantiated...
EDIT : options.add_extension
is not working wkeeling/selenium-wire#498.
But that's a non issue since you just have to unzip those to make it work with the command line option.
EDIT2 : That would've been great if you took the time to search the issues before raising a new one.
Sorry for this..😢 Thanks for the help ❤
Only the latest extension added into the driver. How to add multiple at the same time ?? Also tried to add as .crx but didn't successful.