Skip to content

[🐛 Bug]: Unable to load crx extension in Chrome 142 #16534

@lupanlpb

Description

@lupanlpb

Description

It is impossible to load Chrome crx extension in Chrome 142, while same code works well before Chrome upgrade.

Reproducible Code

options = webdriver.ChromeOptions()
        extension_path = os.path.join(project_dir, "extensions/ModHeader-Modify-HTTP-headers-Chrome-Web-Store.crx")
        options.add_extension(extension_path)
        options.add_argument("--test-type")
        options.add_argument("--start-maximized")
        options.add_argument("--disable-web-security")
        options.add_argument("--allow-insecure-localhost")
        options.add_argument("--allow-running-insecure-content")
        options.add_argument("--disable-site-isolation-trials")
        options.add_argument("--lang=en")
        options.add_argument("--disable-features=DisableLoadExtensionCommandLineSwitch")
        _driver = webdriver.Chrome(options)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-pyPython BindingsD-chromeI-regressionSomething was working but we "fixed" it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions