OpenQA.Selenium.ElementAttributeTest.ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed C# (CSharp) Метод

ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed() приватный Метод

private ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed ( ) : void
Результат void
        public void ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed()
        {
            driver.Url = simpleTestPage;
            IWebElement head = driver.FindElement(By.XPath("/html"));
            string attribute = head.GetAttribute("cheese");
            Assert.IsNull(attribute);
        }