lib/watir/elements/radio.rb in watir-6.19.1 vs lib/watir/elements/radio.rb in watir-7.0.0.beta1
- old
+ new
@@ -37,15 +37,15 @@
l.exist? ? l.text : ''
end
end # Radio
module Container
- def radio(*args)
- Radio.new(self, extract_selector(args).merge(tag_name: 'input', type: 'radio'))
+ def radio(opts = {})
+ Radio.new(self, opts.merge(tag_name: 'input', type: 'radio'))
end
- def radios(*args)
- RadioCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'radio'))
+ def radios(opts = {})
+ RadioCollection.new(self, opts.merge(tag_name: 'input', type: 'radio'))
end
end # Container
class RadioCollection < InputCollection
private