lib/firewatir/firefox.rb in firewatir-1.8.1 vs lib/firewatir/firefox.rb in firewatir-1.9.0.rc1
- old
+ new
@@ -921,12 +921,18 @@
puts " index: #{i+1}"
end
end
alias showFrames show_frames
+ @@path_to_bin = nil
+ def self.path_to_bin=(path)
+ @@path_to_bin = path
+ end
+
private
def path_to_bin
+ return @@path_to_bin if @@path_to_bin
path = case current_os()
when :windows
path_from_registry
when :macosx
path_from_spotlight