From: "Mattias A." Date: 2013-03-18T01:10:12+09:00 Subject: Re: Selenium. catching Body class value tamouse mailing lists wrote in post #1101784: > On Fri, Mar 15, 2013 at 9:01 AM, Mattias A. > wrote: >> puts test >> >> -- >> Posted via http://www.ruby-forum.com/. >> > > If you assign test to the element, instead of just the text of the > element, the attributes should be available as test[:id], test[:class] > and so on... A big thank you!! It worked to use test[:class] :D Best Regards Mattias -- Posted via http://www.ruby-forum.com/.