lib/watir/elements/font.rb in watir-6.19.1 vs lib/watir/elements/font.rb in watir-7.0.0.beta1

- old
+ new

@@ -10,14 +10,14 @@ attribute_value(:size) end end # Font module Container - def font(*args) - Font.new(self, extract_selector(args).merge(tag_name: 'font')) + def font(opts = {}) + Font.new(self, opts.merge(tag_name: 'font')) end - def fonts(*args) - FontCollection.new(self, extract_selector(args).merge(tag_name: 'font')) + def fonts(opts = {}) + FontCollection.new(self, opts.merge(tag_name: 'font')) end end # Container end # Watir