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

ShouldReturnTheValueOfTheIndexAttrbuteEvenIfItIsMissing() private method

        public void ShouldReturnTheValueOfTheIndexAttrbuteEvenIfItIsMissing()
        {
            driver.Url = formsPage;

            IWebElement multiSelect = driver.FindElement(By.Id("multi"));
            ReadOnlyCollection<IWebElement> options = multiSelect.FindElements(By.TagName("option"));
            Assert.AreEqual("1", options[1].GetAttribute("index"));
        }