title: Can we get page source using Selenium even it's not fully loaded (TimeoutException: Message: timeout)?
body: <p>Can we get page source even we meet (TimeoutException: Message: timeout)?</p>
  
  <p>When I call "driver.page_source", it sometimes failed to load full pages.</p>
  
  <p>But I only need partial information of it which is not determined yet. So I just want to save the page in any cases. Is it possible?</p>
  
  <pre><code>import random
  
  def info_request(driver,project_id,project_url,path):
      driver.get(project_url)
      sleep(0.2+random.uniform(0, 1.5))
      doc = driver.page_source
      with open(str(project_id)+ ".html", "w") as f:
          f.write(doc.encode("utf-8"))
      return project_info
  
  driver = webdriver.Chrome()
  driver.implicitly_wait(40)
  driver.set_page_load_timeout(40)
  
  project_info = info_request(driver,project_id,project_url,path)
  
  driver.close()
  </code></pre>