Class: Selenium::WebDriver::Firefox::ProfilesIni Private

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/firefox/profiles_ini.rb

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

Instance Method Summary collapse

Constructor Details

#initializeProfilesIni

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 a new instance of ProfilesIni.



27
28
29
30
31
32
# File 'lib/selenium/webdriver/firefox/profiles_ini.rb', line 27

def initialize
  @ini_path = File.join(Util.app_data_path, "profiles.ini")
  @profile_paths = {}

  parse if File.exist?(@ini_path)
end

Instance Method Details

#[](name) ⇒ 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.



34
35
36
37
# File 'lib/selenium/webdriver/firefox/profiles_ini.rb', line 34

def [](name)
  path = @profile_paths[name]
  path && Profile.new(path)
end

#refreshObject

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.



39
40
41
42
# File 'lib/selenium/webdriver/firefox/profiles_ini.rb', line 39

def refresh
  @profile_paths.clear
  parse
end