lib/webdrivers/edge_finder.rb in webdrivers-4.1.3 vs lib/webdrivers/edge_finder.rb in webdrivers-4.2.0
- old
+ new
@@ -35,11 +35,13 @@
ENV['WD_EDGE_CHROME_PATH']
end
def win_location
envs = %w[LOCALAPPDATA PROGRAMFILES PROGRAMFILES(X86)]
- directories = ['\\Microsoft\\Edge Dev\\Application', '\\Microsoft\\Edge SxS\\Application']
+ directories = ['\\Microsoft\\Edge Beta\\Application',
+ '\\Microsoft\\Edge Dev\\Application',
+ '\\Microsoft\\Edge SxS\\Application']
file = 'msedge.exe'
directories.each do |dir|
envs.each do |root|
option = "#{ENV[root]}\\#{dir}\\#{file}"
@@ -50,9 +52,10 @@
end
def mac_location
directories = ['', File.expand_path('~')]
files = ['/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
+ '/Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta',
'/Applications/Microsoft Edge Dev.app/Contents/MacOS/Microsoft Edge Dev',
'/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary']
directories.each do |dir|
files.each do |file|