public void CanReturnATextApproximationOfTheStyleAttribute() { driver.Url = javascriptPage; string style = driver.FindElement(By.Id("red-item")).GetAttribute("style"); Assert.IsTrue(style.ToLower().Contains("background-color")); }