public void ShouldReturnValueOfClassAttributeOfAnElement() { driver.Url = xhtmlTestPage; IWebElement heading = driver.FindElement(By.XPath("//h1")); String className = heading.GetAttribute("class"); Assert.AreEqual("header", className); }