OpenQA.Selenium.ElementAttributeTest.CanReturnATextApproximationOfTheStyleAttribute C# (CSharp) Méthode

CanReturnATextApproximationOfTheStyleAttribute() private méthode

private CanReturnATextApproximationOfTheStyleAttribute ( ) : void
Résultat void
        public void CanReturnATextApproximationOfTheStyleAttribute()
        {
            driver.Url = javascriptPage;
            string style = driver.FindElement(By.Id("red-item")).GetAttribute("style");

            Assert.IsTrue(style.ToLower().Contains("background-color"));
        }