Module: Watir::RadioCheckGroup
- Included in:
- CheckboxGroup, RadioGroup
- Defined in:
- lib/watirloo/extension/watir_ducktape.rb
Overview
for IE only
Instance Method Summary collapse
Instance Method Details
#get_by_value(value) ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 76 def get_by_value value if values.member? value @o.find {|rc| rc.ole_object.invoke('value') == value} else raise ::Watir::Exception::WatirException, "value #{value} not found in hidden_values" end end |
#values ⇒ Object
70 71 72 73 74 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 70 def values opts = [] @o.each {|rc| opts << rc.ole_object.invoke('value')} return opts end |