lib/watir/elements/radio.rb in watir-6.15.1 vs lib/watir/elements/radio.rb in watir-6.16.0
- old
+ new
@@ -1,10 +1,10 @@
module Watir
class Radio < Input
- def initialize(query_scope, selector)
- super
+ def build
@selector[:label] = @selector.delete(:text) if @selector.key?(:text)
+ super
end
#
# Selects this radio button.
#
@@ -48,9 +48,14 @@
end
end # Container
class RadioCollection < InputCollection
private
+
+ def build
+ @selector[:label] = @selector.delete(:text) if @selector.key?(:text)
+ super
+ end
def element_class
Radio
end
end # RadioCollection