lib/webdrivers/chrome_finder.rb in webdrivers-4.4.1 vs lib/webdrivers/chrome_finder.rb in webdrivers-4.4.2
- old
+ new
@@ -102,9 +102,11 @@
nil
end
def win_version(location)
+ System.call("pwsh.exe -command \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
+ rescue StandardError
System.call("powershell.exe \"(Get-ItemProperty '#{location}').VersionInfo.ProductVersion\"")&.strip
end
def wsl_version(location)
win_version(System.to_win32_path(location))