Sunday, July 5, 2015

C# Selenium webdriver ImplicitWait

Implicit wait will initialize once in a life time of webdriver object.
After each and every statement execution of webdriver implicit wait will be invoked.
It will wait for specified time period to execute the statement. if it executed before the time period remaining time will be ignored and continue to the next statement.

Ex:

IWebDriver driver = new FirefoxDriver();
driver.Manage().Timeouts().ImplicitlyWait(10, TimeSpan.SECONDS);

After every statement execution it will for 10 seconds, suppose if the statement executed in 4 sec. it will suppress remaining 6 sec.

0 comments