Module: Selenium::WebDriver::Firefox::Util Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | rb/lib/selenium/webdriver/firefox/util.rb |
Class Method Summary
- .app_data_path Internal use only mod_func
- .stringified?(str) ⇒ Boolean Internal use only mod_func
Class Method Details
.app_data_path (mod_func)
[ GitHub ]# File 'rb/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
.stringified?(str) ⇒ Boolean
(mod_func)
# File 'rb/lib/selenium/webdriver/firefox/util.rb', line 40
def stringified?(str) str =~ /^".*"$/ end