Class: FireWatir::RadioGroup
- Includes:
- RadioCheckGroup, Watir::RadioGroupCommonWatir
- Defined in:
- lib/watirloo/extension/firewatir_ducktape.rb
Instance Method Summary collapse
-
#initialize(container, name) ⇒ RadioGroup
constructor
A new instance of RadioGroup.
-
#selected_value ⇒ Object
(also: #selected)
see Watir::RadioGroup.selected_value.
Methods included from Watir::RadioGroupCommonWatir
#selected_radio, #selected_values, #set?
Methods included from RadioCheckGroup
Methods included from Watir::RadioCheckGroupCommonWatir
#[], #get_by_position, #get_by_value, #set, #size, #values
Constructor Details
#initialize(container, name) ⇒ RadioGroup
Returns a new instance of RadioGroup.
155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/watirloo/extension/firewatir_ducktape.rb', line 155 def initialize(container, name) @container = container @name = name @o = [] @container.radios.each do |r| #TODO find why find_all does not work if r.name == @name @o << r end end return @o end |
Instance Method Details
#selected_value ⇒ Object Also known as: selected
see Watir::RadioGroup.selected_value
168 169 170 |
# File 'lib/watirloo/extension/firewatir_ducktape.rb', line 168 def selected_value selected_radio.value end |