Testing that an element has a css class

I have a situation where I am going through and filling out a form. When I go back in to view the form the selected items have a different class than before. Is there a way to check that these items have this class without going in and creating new test objects for these elements?

You can use the GetAttribute method

WebUI.getAttribute(findTestObject(‘W3School/TryItButtonFrame’), “class”)