Is there any way to explicitly set a timeout value. I’ve used the following, but it doesn’t seem to be working:
IWebDriver driver = new FirefoxDriver(profile);
driver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 30));
If I can create a new tab and close the current one, and/or stop the page loading when an exception occurs, that would be a sufficient workaround.
Thanks.
A helper class is available in the WebDriver support project. Using that you can wait till the condition you passed to the “Untill” method is satisfied or it’s times out after specified period(in this e.g. after 3 seconds)
Install the support project via NuGet using the following command