Module: Watir::Container

Defined in:
lib/watirloo/extension/watir_ducktape.rb,
lib/watirloo/extension/watir_reflector.rb

Instance Method Summary collapse

Instance Method Details

#checkbox_group(how, what = nil) ⇒ Object



355
356
357
358
# File 'lib/watirloo/extension/watir_ducktape.rb', line 355

def checkbox_group(how, what=nil)
  how, what = process_default :name, how, what
  CheckboxGroup.new(self, how, what)
end

#checkbox_groupsObject



360
361
362
# File 'lib/watirloo/extension/watir_ducktape.rb', line 360

def checkbox_groups
  CheckboxGroups.new(self)
end

#radio_group(how, what = nil) ⇒ Object



346
347
348
349
# File 'lib/watirloo/extension/watir_ducktape.rb', line 346

def radio_group(how, what=nil)
  how, what = process_default :name, how, what
  RadioGroup.new(self, how, what)
end

#radio_groupsObject



351
352
353
# File 'lib/watirloo/extension/watir_ducktape.rb', line 351

def radio_groups
  RadioGroups.new(self)
end

#reflectObject

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