Home > OS >  System.InvalidOperationException: 'session not created: This version of ChromeDriver only suppo
System.InvalidOperationException: 'session not created: This version of ChromeDriver only suppo

Time:03-31

I'm making a game application just for me. This app was working last night but when i wake up today i saw it the program did not work today. It says,

System.InvalidOperationException: 'session not created: This version of ChromeDriver only supports Chrome version 98
Current browser version is 100.0.4896.60 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

I tried a lot of way but ı couldn't fix it.

  1. I gave the file path like

         string lobby = "https://translate.google.com";
         var service = ChromeDriverService.CreateDefaultService();
         service.HideCommandPromptWindow = true;
         var ayar = new ChromeOptions();
         ayar.AddArguments("--window-size=1920,1080");
         ayar.AddArguments("--start-maximized");
         driver = new ChromeDriver(@"C:\Users\ss\source\repos\hmmm\hmmm\driver\");
         driver.Manage().Window.Maximize();
         driver.Navigate().GoToUrl(lobby   "/");
    
  2. I deleted nuGet and reinstalled with version 98 but still ı have same error how can ı fix it? Also my normal chrome browser version is 100. Thanks for your answers

CodePudding user response:

System.InvalidOperationException: 'session not created: This version of ChromeDriver only supports Chrome version 98 Current browser version is 100.0.4896.60 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. session.

Your main issue is the incompatibility between the version of the binaries you are using as follows:

  • You are using chrome=100.0
  • But you are using chromedriver=98.0
  • Release Notes of chromedriver=98.0 clearly mentions the following :

Supports Chrome version 98

So there is a clear mismatch between chromedriver=98.0 and the chrome=100.0


Solution

As you are using chrome=100.0 ensure that ChromeDriver is updated to ChromeDriver v100.0 level.

  • Related