lib/webdrivers/chrome_finder.rb in webdrivers-4.4.2 vs lib/webdrivers/chrome_finder.rb in webdrivers-4.5.0
- old
+ new
@@ -86,11 +86,11 @@
nil
end
def linux_location
- return wsl_location if System.wsl?
+ return wsl_location if System.wsl_v1?
directories = %w[/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /snap/bin /opt/google/chrome]
files = %w[google-chrome chrome chromium chromium-browser]
directories.each do |dir|
@@ -112,10 +112,10 @@
def wsl_version(location)
win_version(System.to_win32_path(location))
end
def linux_version(location)
- return wsl_version(location) if System.wsl?
+ return wsl_version(location) if System.wsl_v1?
System.call(location, '--product-version')&.strip
end
def mac_version(location)