since a week ago, we are facing an error when we start the ChromeDriver in a Selenium project. Our C# piece of code is:
var options = new ChromeOptions();
options.AddArgument("--no-sandbox");
options.AddArguments("--lang=en-GB");
options.AddArgument("--disable-gpu");
options.AddArgument("--window-size=1920,1080");
options.AddArgument("--incognito");
options.AddArgument("--disable-dev-shm-usage");
driver = new ChromeDriver(
new DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.MatchingBrowser),
options,
TimeSpan.FromMinutes(3));
The chrome browser version is 125.0.6422.142.
We are receiving the following error:
System.InvalidOperationException : session not created: DevToolsActivePort file doesn’t exist (SessionNotCreated)
We have tried many different paths adding and deleting options without success:
-
Install older Chrome version.
-
Install older Selenium versions.
-
Install older Visual Studio Version.
-
Run solution with Admin permission.
-
Headless mode.
-
no sandbox argument.
-
–remote-debugging-pipe.
-
–remote-debugging-port=9222.
-
–user-data-dir=C:/path/to/Chrome/Userdata.
Even so, we are not being able to unblock the situation. Has anybody faced the same issue or can help us??
Pablo Pedro Chiflao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.