Class: Watir::TextFields
- Inherits:
-
ElementCollections
- Object
- ElementCollections
- Watir::TextFields
- Defined in:
- lib/watirloo/extension/watir_ducktape.rb
Instance Method Summary collapse
Methods included from Reflector
#get_attribs, #get_how_what, #suggest_def_name
Instance Method Details
#reflect ⇒ Object
180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/watirloo/extension/watir_ducktape.rb', line 180 def reflect ret = [] self.each do |item| how, what = get_how_what get_attribs(item) facename = suggest_def_name what value = item.value # this approach relies on doc element ret << "face(:#{facename}) {doc.text_field(:#{how}, #{what.inspect})}" ret << "#{facename}.value.should == #{value.inspect}" end ret end |