Module: Selenium::WebDriver::Firefox::Util
- Defined in:
- lib/selenium/webdriver/firefox/util.rb
Class Method Summary collapse
Class Method Details
.app_data_path ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/selenium/webdriver/firefox/util.rb', line 9 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
22 23 24 |
# File 'lib/selenium/webdriver/firefox/util.rb', line 22 def stringified?(str) str =~ /^".*"$/ end |