简体   繁体   中英

Selenium.WebDriver.ChromeDriver Nuget - Asterisk downloading previous version

I have the package reference set as

<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="*" />

However tests are failing in AppVeyor throwing this error:

System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 100
Current browser version is 99.0.4844.84 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated)

Shouldn't the asterisk be downloading the latest version on each AppVeyor run?

Try using *-* . Using * only takes into account release versions.

Reference:

https://learn.microsoft.com/en-us/nuget/concepts/package-versioning#floating-version-resolutions

Chrome have pushed the version to 100 just now.

Chrome100

Update your browser (incase not auto updated), you will be good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM