Hi ...

The error is here textF =  ie.text_fields.collect {|tf | puts tf} -
returns null.
collect {|item|block} - return an array of things returned by the
block.

Hence you see the undefined method `name' for nil:NilClass
(NoMethodError)

try this -
#collect Text fields elaments
textF =  ie.text_fields.collect {|tf | tf}

# iterate to check for none_null_ name text field
for tf in textF do
  if ie.text_field(:name, tf.name).value != 'null'
           puts  tf.name.to_s
  end

Thanks,
Tony

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to