From: sto.mar@... Date: 2013-04-12T14:55:01+09:00 Subject: Re: question on watir Am 12.04.2013 07:48, schrieb Raj pal: > hi, > I have a question, > > $browser.elements.each do |t| > puts t > end > > Is there anything wrong in the above code, it's giving the error, > > " `each_element': undefined method `each' for nil:NilClass > (NoMethodError)" > > Can't apply each method for elements? > > RAJ Try p $browser.elements or puts $browser.elements.inspect and you will see what the problem is. --