We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0ee22 commit c76eb5fCopy full SHA for c76eb5f
WebDriverManager/DriverConfigs/Impl/ChromeConfig.cs
@@ -83,6 +83,10 @@ private static string GetLatestVersion(string url)
83
public virtual string GetMatchingBrowserVersion()
84
{
85
var rawChromeBrowserVersion = GetRawBrowserVersion();
86
+ if (string.IsNullOrEmpty(rawChromeBrowserVersion))
87
+ {
88
+ throw new Exception("Not able to get chrome version or not installed");
89
+ }
90
var chromeBrowserVersion = VersionHelper.GetVersionWithoutRevision(rawChromeBrowserVersion);
91
var url = ExactReleaseVersionPatternUrl.Replace("<version>", chromeBrowserVersion);
92
return GetLatestVersion(url);
0 commit comments