I am using Selenium 2.20 WebDriver to create and manage a firefox browser with C#. To open the website or page, I am using the following code, setting the driver timeouts before visiting the URL:
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5)); // Set implicit wait timeouts to 5 secs
driver.Manage().Timeouts().SetScriptTimeout(new TimeSpan(0, 0, 0, 5)); // Set script timeouts to 5 secs
driver.Navigate().GoToUrl(myUrl); // Goto page url
But pages takes lot of time to load and but default timeout for a page to load using the selenium WebDriver is 30 seconds, which is too long.How to fix this issue?