Class: Selenium::WebDriver::Firefox::ProfilesIni Private
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Firefox::ProfilesIni
- Defined in:
- rb/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)
- - (Object) [](name) private
-
- (ProfilesIni) initialize
constructor
private
A new instance of ProfilesIni.
- - (Object) refresh private
Constructor Details
- (ProfilesIni) initialize
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
8 9 10 11 12 13 |
# File 'rb/lib/selenium/webdriver/firefox/profiles_ini.rb', line 8 def initialize @ini_path = File.join(Util.app_data_path, "profiles.ini") @profile_paths = {} parse if File.exist?(@ini_path) end |
Instance Method Details
- (Object) [](name)
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.
15 16 17 18 |
# File 'rb/lib/selenium/webdriver/firefox/profiles_ini.rb', line 15 def [](name) path = @profile_paths[name] path && Profile.new(path) end |
- (Object) refresh
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.
20 21 22 23 |
# File 'rb/lib/selenium/webdriver/firefox/profiles_ini.rb', line 20 def refresh @profile_paths.clear parse end |