diff --git a/lib/webdrivers/edge_finder.rb b/lib/webdrivers/edge_finder.rb index f3158652..9e85a84d 100644 --- a/lib/webdrivers/edge_finder.rb +++ b/lib/webdrivers/edge_finder.rb @@ -69,6 +69,17 @@ def mac_location end def linux_location + # directories = %w[/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /snap/bin /opt/google/chrome] + # files = %w[microsoft-edge] # Based on Microsoft Edge 89.0.760.0 dev + # + # directories.each do |dir| + # files.each do |file| + # option = "#{dir}/#{file}" + # return option if File.exist?(option) + # end + # end + # + # nil raise 'Default location not yet known' end diff --git a/lib/webdrivers/edgedriver.rb b/lib/webdrivers/edgedriver.rb index 88c20427..d3ad5b5a 100644 --- a/lib/webdrivers/edgedriver.rb +++ b/lib/webdrivers/edgedriver.rb @@ -76,15 +76,15 @@ def apple_m1_compatible?(driver_version) false end - def linux_compatible?(driver_version) - System.platform == 'linux' && driver_version >= normalize_version('89.0.731.0') - end + # def linux_compatible?(driver_version) + # System.platform == 'linux' && driver_version >= normalize_version('89.0.731.0') + # end def driver_filename(driver_version) if System.platform == 'win' || System.wsl_v1? "win#{System.bitsize}" # 32 or 64-bit - elsif linux_compatible?(driver_version) - 'linux64' + # elsif linux_compatible?(driver_version) + # 'linux64' elsif System.platform == 'mac' # Determine M1 or Intel architecture apple_arch = apple_m1_compatible?(driver_version) ? 'arm' : 'mac'