Skip to content

[πŸ› Bug]: Unable to install or load extension in chromeΒ #16323

@horindx

Description

@horindx

Description

Whether it is crx, zip or directory, whether add_extension or --load-extension=, it is invalid.

The same code works fine when driven by Edge browser.

options = webdriver.EdgeOptions(), driver = webdriver.Edge(options=options) is normal.

options = webdriver.ChromeOptions(), driver = webdriver.Chrome(options=options) is wrong and the plug-in will not be loaded

Reproducible Code

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument(r"load-extension=D:\Extensions\mcohilncbfahbmgdjkbpemcciiolgcge\3.54.0_0")
#options.add_extension(r'D:\Extensions\MetaMask.crx')
#options.add_extension(r'D:\Extensions\MetaMask.zip')
driver = webdriver.Chrome(options=options)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions