123456789_123456789_123456789_123456789_123456789_

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

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)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/firefox/util.rb', line 40

def stringified?(str)
  str =~ /^".*"$/
end