We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
File.exist?
1 parent 1d49fa6 commit 709ddbcCopy full SHA for 709ddbc
rb/lib/selenium/webdriver/firefox/binary.rb
@@ -170,8 +170,8 @@ def windows_path
170
171
def macosx_path
172
path = "/Applications/Firefox.app/Contents/MacOS/firefox-bin"
173
- path = "~/Applications/Firefox.app/Contents/MacOS/firefox-bin" unless File.exist?(path)
174
- path = Platform.find_binary("firefox-bin") unless File.exist?(path)
+ 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))
175
176
path
177
end
0 commit comments