OpenQA.Selenium.ImplicitWaitTest.ShouldImplicitlyWaitForASingleElement C# (CSharp) Méthode

ShouldImplicitlyWaitForASingleElement() private méthode

private ShouldImplicitlyWaitForASingleElement ( ) : void
Résultat void
        public void ShouldImplicitlyWaitForASingleElement()
        {
            driver.Url = dynamicPage;
            IWebElement add = driver.FindElement(By.Id("adder"));

            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMilliseconds(3000));

            add.Click();
            driver.FindElement(By.Id("box0"));  // All is well if this doesn't throw.
        }