OpenQA.Selenium.ImplicitWaitTest.ShouldImplicitlyWaitUntilAtLeastOneElementIsFoundWhenSearchingForMany C# (CSharp) Method

ShouldImplicitlyWaitUntilAtLeastOneElementIsFoundWhenSearchingForMany() private method

        public void ShouldImplicitlyWaitUntilAtLeastOneElementIsFoundWhenSearchingForMany()
        {
            driver.Url = dynamicPage;
            IWebElement add = driver.FindElement(By.Id("adder"));

            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMilliseconds(2000));
            add.Click();
            add.Click();

            ReadOnlyCollection<IWebElement> elements = driver.FindElements(By.ClassName("redbox"));
            Assert.GreaterOrEqual(elements.Count, 1);
        }