OpenQA.Selenium.RenderedWebElementTest.ShouldAllowInheritedStylesToBeUsed C# (CSharp) Méthode

ShouldAllowInheritedStylesToBeUsed() private méthode

private ShouldAllowInheritedStylesToBeUsed ( ) : void
Résultat void
        public void ShouldAllowInheritedStylesToBeUsed()
        {
            driver.Url = javascriptPage;

            IWebElement element = driver.FindElement(By.Id("green-item"));
            string backgroundColour = element.GetCssValue("background-color");

            Assert.That(backgroundColour, Is.EqualTo("transparent").Or.EqualTo("rgba(0, 0, 0, 0)"));
        }