Class: Selenium::WebDriver::Firefox::ProfilesIni
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Firefox::ProfilesIni
- Defined in:
- lib/selenium/webdriver/firefox/profiles_ini.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize ⇒ ProfilesIni
constructor
A new instance of ProfilesIni.
- #refresh ⇒ Object
Constructor Details
#initialize ⇒ ProfilesIni
Returns a new instance of ProfilesIni.
8 9 10 11 12 13 |
# File '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
#[](name) ⇒ Object
15 16 17 |
# File 'lib/selenium/webdriver/firefox/profiles_ini.rb', line 15 def [](name) Profile.new @profile_paths[name] end |
#refresh ⇒ Object
19 20 21 22 |
# File 'lib/selenium/webdriver/firefox/profiles_ini.rb', line 19 def refresh @profile_paths.clear parse end |