From: "Mattias A." Date: 2013-03-15T23:01:12+09:00 Subject: Selenium. catching Body class value I have a site where my script changes language on the site. To verify that the script ends up on correct page I want to verify that body class contains correct locale, SWE, GB, USA and so on. But I don't find a way of catching the value between class=" ">. When I using :tag_name .text i got all text on the page. And if I use :class I need to know the locale... test = driver.find_element(:tag_name, "body").text #Take all text on the site puts test ###E.G"### Any suggestion of how I can do it? Best Regards Mattias -- Posted via http://www.ruby-forum.com/.