Skip to content

Commit

Permalink
rb - update expand_path for local Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 27, 2016
1 parent 709ddbc commit 3201b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/firefox/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def windows_path

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

path
end
Expand Down

0 comments on commit 3201b58

Please sign in to comment.