lib/selenium/web_driver/firefox/profile.rb in hyper-spec-0.1.2 vs lib/selenium/web_driver/firefox/profile.rb in hyper-spec-0.99.0
- old
+ new
@@ -4,20 +4,20 @@
class Profile
class << self
attr_accessor :firebug_version
def firebug_version
- @firebug_version ||= '2.0.13-fx'
+ @firebug_version ||= '2.0.19-fx'
end
end
def frame_position
@frame_position ||= 'detached'
end
def frame_position=(position)
- @frame_position = %w(left right top detached).detect do |side|
+ @frame_position = %w[left right top detached].detect do |side|
position && position[0].downcase == side[0]
end || 'detached'
end
def enable_firebug(version = nil)
@@ -34,10 +34,10 @@
# Enable for all sites.
self['extensions.firebug.allPagesActivation'] = 'on'
# Enable all features.
- %w(console net script).each do |feature|
+ %w[console net script].each do |feature|
self["extensions.firebug.#{feature}.enableSites"] = true
end
# Closed by default, will open detached.
self['extensions.firebug.framePosition'] = frame_position