Skip to content

[πŸ› Bug]: Unable to load extension in Chrome 142 with Selenium .NETΒ #16532

@SKumar-777

Description

@SKumar-777

Description

The following code works to load an unpacked Chrome extension up to Chrome browser version 141. But same code it no longer works in the latest Chrome version 142.

var options = new ChromeOptions();
options.AddArgument("--load-extension=" + extensionPath);//Load unpacked extension
options.AddArgument("--disable-features=DisableLoadExtensionCommandLineSwitch");
var driver = new ChromeDriver(options);
//Set Remote WebDriver using Chrome Options.
driver = new RemoteWebDriver(new Uri("http://localhost:" + driverPort), options);

Environment:
Selenium Version: 4.30 (cannot upgrade to a newer version due to production environment restrictions)
ChromeDriver Version: 142
Chrome Version: 142
Language: .NET Framework 4.8

Has there been a recent change in latest Chrome or ChromeDriver that affects loading unpacked extensions through Selenium?

Reproducible Code

var options = new ChromeOptions();
options.AddArgument("--load-extension=" + extensionPath);//Load unpacked extension
options.AddArgument("--disable-features=DisableLoadExtensionCommandLineSwitch");
var driver = new ChromeDriver(options);                         
//Set Remote WebDriver using Chrome Options.
driver = new RemoteWebDriver(new Uri("http://localhost:" + driverPort), 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