/// <inheritdoc/>
 public string GetInstalledBrowserVersion() =>
 OSInfo.IsWindows
         ? AppVersionDetector.GetFromProgramFiles(@"Google\Chrome\Application\chrome.exe")
 ?? AppVersionDetector.GetFromBLBeaconInRegistry(@"Google\Chrome")
 ?? AppVersionDetector.GetByApplicationPathInRegistry("chrome.exe")
         : OSInfo.IsOSX
             ? AppVersionDetector.GetThroughOSXApplicationCli("Google Chrome")
             : AppVersionDetector.GetThroughCli("google-chrome", "--product-version");
Exemple #2
0
 /// <inheritdoc/>
 public string GetInstalledBrowserVersion() =>
 OSInfo.IsWindows
         ? AppVersionDetector.GetFromProgramFiles(@"Microsoft\Edge\Application\msedge.exe")
 ?? AppVersionDetector.GetFromBLBeaconInRegistry(@"Microsoft\Edge")
 ?? AppVersionDetector.GetByApplicationPathInRegistry("msedge.exe")
         : null;