Class: Selenium::WebDriver::Firefox::Profile
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Firefox::Profile
- Defined in:
- lib/jasmine/firebug/firebug.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.firebug_version ⇒ Object
4 5 6 |
# File 'lib/jasmine/firebug/firebug.rb', line 4 def self.firebug_version @firebug_version ||= '1.6.2' end |
.firebug_version=(version) ⇒ Object
8 9 10 |
# File 'lib/jasmine/firebug/firebug.rb', line 8 def self.firebug_version=(version) @firebug_version = version end |
Instance Method Details
#enable_firebug(version = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/jasmine/firebug/firebug.rb', line 12 def enable_firebug(version = nil) version ||= Selenium::WebDriver::Firefox::Profile.firebug_version add_extension(File.("../firebug-#{version}.xpi", __FILE__)) # Prevent "Welcome!" tab self["extensions.firebug.currentVersion"] = "999" # Enable for all sites. self["extensions.firebug.allPagesActivation"] = "on" # Enable all features. ['console', 'net', 'script'].each do |feature| self["extensions.firebug.#{feature}.enableSites"] = true end # Open by default. self["extensions.firebug.previousPlacement"] = 1 end |