OpenQA.Selenium.ElementFindingTest.ShouldBeAbleToFindMultipleElementsById C# (CSharp) Méthode

ShouldBeAbleToFindMultipleElementsById() private méthode

private ShouldBeAbleToFindMultipleElementsById ( ) : void
Résultat void
        public void ShouldBeAbleToFindMultipleElementsById()
        {
            driver.Url = nestedPage;

            ReadOnlyCollection<IWebElement> elements = driver.FindElements(By.Id("2"));

            Assert.AreEqual(8, elements.Count);
        }
ElementFindingTest