Module: Watir::Container
- Defined in:
- lib/watirloo/extension/watir_ducktape.rb,
lib/watirloo/extension/watir_reflector.rb
Instance Method Summary collapse
- #checkbox_group(how, what = nil) ⇒ Object
- #checkbox_groups ⇒ Object
- #radio_group(how, what = nil) ⇒ Object
- #radio_groups ⇒ Object
-
#reflect ⇒ Object
container asks collections to reflect themselves each collection knows how to reflect itself and what to reflect.
Instance Method Details
#checkbox_group(how, what = nil) ⇒ Object
354 355 356 357 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 354 def checkbox_group(how, what=nil) how, what = process_default :name, how, what CheckboxGroup.new(self, how, what) end |
#checkbox_groups ⇒ Object
359 360 361 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 359 def checkbox_groups CheckboxGroups.new(self) end |
#radio_group(how, what = nil) ⇒ Object
345 346 347 348 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 345 def radio_group(how, what=nil) how, what = process_default :name, how, what RadioGroup.new(self, how, what) end |
#radio_groups ⇒ Object
350 351 352 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 350 def radio_groups RadioGroups.new(self) end |
#reflect ⇒ Object
container asks collections to reflect themselves each collection knows how to reflect itself and what to reflect
65 66 67 68 69 70 71 |
# File 'lib/watirloo/extension/watir_reflector.rb', line 65 def reflect ref = [] [:radio_groups, :checkbox_groups, :text_fields, :select_lists].each do |type| ret << self.send(type).reflect end return ref end |