From: tamouse mailing lists Date: 2013-03-16T01:24:46+09:00 Subject: Re: Retrieves the count for the list of entries - not working On Fri, Mar 15, 2013 at 11:04 AM, Syed H. wrote: > def get_entry_count(type) > controls = (type.nil?)? nil : get_list_entries_container(type) This is probably the source of your error ^^ what is being returned by get_list_entries_container(type) may not be nil, but apparently the class Watir::TableRow does not respond to the .length method. > retVal = 0 > unless (controls.nil?) > retVal = controls.length > else > retVal = puts "Unable to find list entries for table of: > #{type}" This seems suspicious (though unrelated to your problem). The return value of puts is nil. Are you sure you want to actually send that to output at that point? > end > return retVal > end > > Using gems 1.9.1 on Ruby 1.9.2 and watir-classic-3.3.0 > > I am unable to retrieve the list of entries from the column and get an > error > > Uncaught exception: undefined method `length' for > # > > I think it lies under the get_entry_count but not quite sure, It worked > with Ruby 1.8.7 > > -- > Posted via http://www.ruby-forum.com/. >