Method: Selenium::WebDriver::Firefox::Util.app_data_path
- Defined in:
- lib/selenium/webdriver/firefox/util.rb
.app_data_path ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/selenium/webdriver/firefox/util.rb', line 27 def app_data_path case Platform.os when :windows "#{ENV.fetch('APPDATA')}\\Mozilla\\Firefox" when :macosx "#{Platform.home}/Library/Application Support/Firefox" when :unix, :linux "#{Platform.home}/.mozilla/firefox" else raise "Unknown os: #{Platform.os}" end end |