'VersionResolveStrategy.MatchingBrowser' throws 'System.Exception Not able to get chrome version or not installed'
DerekFoulk opened this issue · 1 comments
I ran into the same issue as the user in #170 and tried using VersionResolveStrategy.MatchingBrowser
to remedy the issue. After doing so, I ran into another issue...
Using the code below, I receive the following exception System.Exception Not able to get chrome version or not installed
:
var driverConfig = new ChromeConfig();
new DriverManager().SetUpDriver(driverConfig, VersionResolveStrategy.MatchingBrowser); // Throws System.Exception
Test output window:
System.Exception
Not able to get chrome version or not installed
at WebDriverManager.DriverConfigs.Impl.ChromeConfig.GetMatchingBrowserVersion()
at WebDriverManager.DriverManager.GetVersionToDownload(IDriverConfig config, String version)
at WebDriverManager.DriverManager.SetUpDriver(IDriverConfig config, String version, Architecture architecture)
I expected that passing VersionResolveStrategy.MatchingBrowser
would make WebDriverManager.NET download/use the version of chrome that is installed on my machine. Instead, I get the exception mentioned above.
I also tried passing the version number as a string (as shown in the docs), but that didn't work for me either- which is fine, because I don't want to have to update the version each time a new version of Chrome is released.
Any ideas as to what I could try to workaround this issue? Thanks in advance!
Which OS are you running Selenium on? Are you certain that Google Chrome is installed on that machine? WebDriverManager.Net only downloads ChromeDriver, not the browser itself.