title: Selenium WebDriver SetPageLoadTimeout does not work in c#?
body: <p>I have been working on Selenium web driver in Chrome and cannot set the default page load wait time. When testing slower web pages driver times out after 60 seconds.</p>
  <p>I have tried two approaches:</p>
  <h1>1:</h1>
  <pre><code>TimeSpan PageLoad = new TimeSpan(0, 0, 120);
  driver = new ChromeDriver(ChromeDriverPath);
  driver.Manage().Timeouts().SetPageLoadTimeout(PageLoad);
  </code></pre>
  <p>and</p>
  <h1>2:</h1>
  <pre><code>public static void WaitForPageLoading()
  {         
  WebDriverWait wait = new WebDriverWait(iwdCurrentlyUsedDriver,     TimeSpan.FromSeconds(120));
   wait.Until&lt;bool&gt;((d) =&gt;
    {
     try
     {
     string test = ((OpenQA.Selenium.IJavaScriptExecutor)EngineGloblalVariables.iwdCurrentlyUsedDriver).ExecuteScript(&quot;return document.readyState&quot;).ToString();
      if (test.Equals(&quot;complete&quot;))
           return true;
      return false;
      }
      catch
      {                   
       return false;
      }
    });
     }
  </code></pre>
  <p>The second solution is used after the driver is navigated to page. I managed to succesfully use the second solution when working with Firefox, but Chrome still times out after 60 seconds. Is there any other way of setting or changing the default timeout for page load?</p>
  <p>EDIT:</p>
  <p>Exception message:</p>
  <pre><code>The HTTP request to the remote WebDriver server for URL
  http://localhost:14545/session/4e0f1edcbc87d06360b6c89a06574476/buttonup timed out after
  60 seconds.
  </code></pre>