OpenQA.Selenium.ElementAttributeTest.ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed C# (CSharp) Method

ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed() private method

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