File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
lib/ferrum/browser/options Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def except(*keys)
26
26
def detect_path
27
27
if Ferrum . mac?
28
28
self . class ::MAC_BIN_PATH . find { |n | File . exist? ( n ) }
29
+ elsif Ferrum . windows?
30
+ self . class ::WINDOWS_BIN_PATH . find { |path | File . exist? ( path ) }
29
31
else
30
32
self . class ::LINUX_BIN_PATH . find do |name |
31
33
path = Cliver . detect ( name ) and break ( path )
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ class Chrome < Base
49
49
LINUX_BIN_PATH = %w[ chromium google-chrome-unstable google-chrome-beta
50
50
google-chrome chrome chromium-browser
51
51
google-chrome-stable ] . freeze
52
+ WINDOWS_BIN_PATH = [
53
+ "C:/Program Files/Google/Chrome Dev/Application/chrome.exe" ,
54
+ "C:/Program Files/Google/Chrome/Application/chrome.exe"
55
+ ] . freeze
52
56
53
57
def merge_required ( flags , options , user_data_dir )
54
58
port = options . fetch ( :port , BROWSER_PORT )
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ class Firefox < Base
12
12
"/Applications/Firefox.app/Contents/MacOS/firefox-bin"
13
13
] . freeze
14
14
LINUX_BIN_PATH = %w[ firefox ] . freeze
15
+ WINDOWS_BIN_PATH = [
16
+ "C:/Program Files/Firefox Developer Edition/firefox.exe" ,
17
+ "C:/Program Files/Mozilla Firefox/firefox.exe"
18
+ ] . freeze
15
19
16
20
def merge_required ( flags , options , user_data_dir )
17
21
port = options . fetch ( :port , BROWSER_PORT )
You can’t perform that action at this time.
0 commit comments