From 3201b58503d8b8665bd08b6b5c361c0d9433a294 Mon Sep 17 00:00:00 2001 From: Titus Fortner Date: Wed, 27 Jan 2016 13:18:02 -0600 Subject: [PATCH] rb - update expand_path for local Firefox --- rb/lib/selenium/webdriver/firefox/binary.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rb/lib/selenium/webdriver/firefox/binary.rb b/rb/lib/selenium/webdriver/firefox/binary.rb index 05c6cb912edd2..3cae5991d07c6 100644 --- a/rb/lib/selenium/webdriver/firefox/binary.rb +++ b/rb/lib/selenium/webdriver/firefox/binary.rb @@ -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