Module: Selenium::WebDriver::Firefox::Util Private

Defined in:
build/rb/lib/selenium/webdriver/firefox/util.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.app_data_pathObject

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.



25
26
27
28
29
30
31
32
33
34
35
36
# File 'build/rb/lib/selenium/webdriver/firefox/util.rb', line 25

def app_data_path
  case Platform.os
  when :windows
    "#{ENV['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

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.

Returns:

  • (Boolean)


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

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