From: Brian Candler Date: 2010-05-11T21:14:31+09:00 Subject: Re: How to compair two object values.plz help me i write that co Zubair Ansari wrote: > puts line > puts ie.text_field(:name,"userId").value > puts "Wrong Value of User ID" Change those first two to puts line.inspect puts ie.text_field(:name,"userId").value.inspect to get a better idea of what's different. My guess is that one contains a newline and the other doesn't; line.chomp! is your friend. -- Posted via http://www.ruby-forum.com/.