OpenQA.Selenium.ElementAttributeTest.ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed C# (CSharp) 메소드

ShouldReturnNullWhenGettingTheValueOfAnAttributeThatIsNotListed() 개인적인 메소드

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