Module: FireWatir::RadioCheckGroup
- Includes:
- Watir::RadioCheckGroupCommonWatir
- Included in:
- CheckboxGroup, RadioGroup
- Defined in:
- lib/watirloo/extension/firewatir_ducktape.rb
Overview
RadioGroup and CheckboxGroup common behaviour
Instance Method Summary collapse
Methods included from Watir::RadioCheckGroupCommonWatir
#[], #get_by_position, #set, #size
Instance Method Details
#get_by_value(value) ⇒ Object
77 78 79 80 81 82 83 |
# File 'lib/watirloo/extension/firewatir_ducktape.rb', line 77 def get_by_value value if values.member? value @o.find {|thing| thing.value == value} else raise ::Watir::Exception::WatirException, "value #{value} not found in hidden values" end end |
#values ⇒ Object
71 72 73 74 75 |
# File 'lib/watirloo/extension/firewatir_ducktape.rb', line 71 def values values = [] @o.each {|thing| values << thing.value} return values end |