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

ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed() private méthode

        public void ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed()
        {
            driver.Url = simpleTestPage;
            IWebElement head = driver.FindElement(By.XPath("/html"));
            string attribute = head.GetAttribute("cheese");
            Assert.IsNull(attribute);
        }