Skip to content

Commit c76eb5f

Browse files
committed
Closes #102
1 parent 6b0ee22 commit c76eb5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WebDriverManager/DriverConfigs/Impl/ChromeConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ private static string GetLatestVersion(string url)
8383
public virtual string GetMatchingBrowserVersion()
8484
{
8585
var rawChromeBrowserVersion = GetRawBrowserVersion();
86+
if (string.IsNullOrEmpty(rawChromeBrowserVersion))
87+
{
88+
throw new Exception("Not able to get chrome version or not installed");
89+
}
8690
var chromeBrowserVersion = VersionHelper.GetVersionWithoutRevision(rawChromeBrowserVersion);
8791
var url = ExactReleaseVersionPatternUrl.Replace("<version>", chromeBrowserVersion);
8892
return GetLatestVersion(url);

0 commit comments

Comments
 (0)