Class: Watir::CheckboxGroups
Instance Method Summary
collapse
Methods included from Reflector
#get_attribs, #get_how_what, #suggest_def_name
Instance Method Details
#element_class ⇒ Object
313
|
# File 'lib/watirloo/extension/watir_ducktape.rb', line 313
def element_class; CheckboxGroup; end
|
314
315
316
317
318
319
320
|
# File 'lib/watirloo/extension/watir_ducktape.rb', line 314
def length
names = []
@container.checkboxes.each do |cb|
names << cb.name
end
names.uniq.size end
|
322
323
324
325
326
327
328
329
330
331
332
333
334
|
# File 'lib/watirloo/extension/watir_ducktape.rb', line 322
def reflect
ret = []
self.each do |item|
name = item.name
facename = suggest_def_name(name)
values = item.values
selected = item.selected
ret << "face(:#{facename}) {doc.checkbox_group(#{name.inspect})}"
ret << "#{facename}.values.should == #{values.inspect}"
ret << "#{facename}.selected.should == #{selected.inspect}"
end
ret
end
|