title: What does Selenium .set_script_timeout(n) do and how is it different from driver.set_page_load_timeout(n)?
body: <p>In context of python selenium, I don't quite understand the exact difference of <code>driver.set_page_load_timeout(n)</code> VS. <code>driver.set_script_timeout(n)</code>. Both seem to be used interchangeable to set a timeout to load an URL via <code>driver.get(URL)</code>, but sometimes also together.</p>
  
  <p><strong>Scenario 1</strong>:</p>
  
  <pre><code>driver.set_page_load_timeout(5)
  website = driver.get(URL)
  results = do_magic(driver, URL)
  </code></pre>
  
  <p><strong>Scenario 2</strong>:</p>
  
  <pre><code>driver.set_script_timeout(5)
  website = driver.get(URL)
  results = do_magic(driver, URL)
  </code></pre>
  
  <p><strong>How do both scenarios differ? Which situations trigger a timeout in one but not the other scenario?</strong></p>