Skip to content

Commit 3201b58

Browse files
committed
rb - update expand_path for local Firefox
1 parent 709ddbc commit 3201b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rb/lib/selenium/webdriver/firefox/binary.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def windows_path
170170

171171
def macosx_path
172172
path = "/Applications/Firefox.app/Contents/MacOS/firefox-bin"
173-
path = "~/Applications/Firefox.app/Contents/MacOS/firefox-bin" unless File.exist?(File.expand_path(path))
174-
path = Platform.find_binary("firefox-bin") unless File.exist?(File.expand_path?(path))
173+
path = File.expand_path("~/Applications/Firefox.app/Contents/MacOS/firefox-bin") unless File.exist?(path)
174+
path = Platform.find_binary("firefox-bin") unless File.exist?(path)
175175

176176
path
177177
end

0 commit comments

Comments
 (0)