C
C#9h ago
surwren

✅ Nuget Package Manager does not seem to be updating (How to Troubleshoot?)

So I'm getting an error on a sample project
System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 106
Current browser version is 131.0.6778.265 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated)
System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 106
Current browser version is 131.0.6778.265 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated)
However this seems to be happening no matter which version of Selenium.WebDriver.ChromeDriver that I use. I've tried 131.0.6778.26400 (as specified on the Github), most recent 131.0.6834.8300, but they all produce the exact same error of only supports Chrome version 106. Hence I think something is wrong with my Nuget (especially because the original project was using <PackageVersion Include="Selenium.WebDriver.ChromeDriver" Version="106.0.5249.6100"/>) but I don't know where to start looking. I have attached some screenshots of (1) Nuget UI, (2) Solution Explorer, and (3) Unit Tests UI as unit tests are triggering the exception.
No description
No description
No description
29 Replies
surwren
surwrenOP9h ago
Earlier the UI was showing a cloud with a cross, don't know if that is related
No description
surwren
surwrenOP9h ago
I can also confirm that ..\testcontainers-dotnet\examples\WeatherForecast\Directory.Packages.props has the entry <PackageVersion Include="Selenium.WebDriver.ChromeDriver" Version="131.0.6778.26400" /> Right click -> Restore Nuget packages also does nothing since I get
All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.0077776
========== Finished ==========
All packages are already installed and there is nothing to restore.
Time Elapsed: 00:00:00.0077776
========== Finished ==========
theonorth
theonorth9h ago
it looks like its trying to use your installed chrome version, not the version installed by chrome driver i don't know selenium dotnet enough to know how to fix it atm, but that's your problem
Unknown User
Unknown User8h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
It doesn't say anything also it got removed after restarting a few times
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX7h ago
* close VS * remove the hidden folder .vs * remove all bin and obj folder next to each csproj (DO NOT TOUCH THE .git FOLDER OR WHAT'S INSIDE) * restart vs
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
nvm, VS indeed drunk
surwren
surwrenOP7h ago
No description
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
all I did was restart PC
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
I'll try that next time
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
how to check size before I attempt it
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
next round
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
yea anyway I didn't know VS could do stuff that required PC restart to kick in 😔 TIL at least it works now
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
I didn't do this I just restarted the entire PC when I saw the replies as a last ditch before I attempted it
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
then it worked right after restarting I had closed/reopened MSVS multiple times before
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
surwren
surwrenOP7h ago
I'll give it a shot next time, ty for heads up
Unknown User
Unknown User7h ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX7h ago
If you have no further questions, please use /close to mark the forum thread as answered
wildREA
wildREA3h ago
Restart Visual Studio. It usually updates things since the IDE is incompetent sometimes.

Did you find this page helpful?