Limiting the timeout period for Selenium FindElement() Limiting the timeout period for Selenium FindElement() selenium selenium

Limiting the timeout period for Selenium FindElement()


The delay in FindElement is caused by the Implicit Wait settings. You can set it temporary to different value

driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(0)); // setting to 0 will check one time only when using FindElement// look for the elementsdriver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(original settings));