title: how to stop selenium page loading?
body: <p>hi when i attempt to load a page using selenium i get this error <code>selenium.common.exceptions.TimeoutException: Message: Timeout loading page after 300000ms</code>
  how do i change this to raise this exception after 10 sec? 
  i have tried this so fare but nothing works:</p>
  
  <pre><code>firefoxProfile.set_preference("network.http.connection-timeout", 10)
  firefoxProfile.set_preference("http.response.timeout", 10)
  firefoxProfile.set_preference("dom.max_script_run_time", 10)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>browser.set_timeout("30")
  </code></pre>
  
  <p>gives me:</p>
  
  <pre><code>AttributeError: 'FirefoxProfile' object has no attribute 'set_timeout'
  </code></pre>