title: Export HAR file using chrome QUIC protocol (HTTPS)
body: <p>I am trying to export HAR file using Chrome and QUIC through python.
  QUIC protocol using TLS1.3 - so i can only use the protocol with the client certificate</p>
  
  <ul>
  <li>I found <a href="https://stackoverflow.com/questions/18075645/export-har-using-chromedriver">this</a> answer (use a proxy server) but the proxy doesn't have the client certificate to enable QUIC so all the HAR files is HTTP1.1 protocol.</li>
  <li>I found <a href="https://stackoverflow.com/questions/52394408/how-to-use-chrome-profile-in-selenium-webdriver-python-3">this</a> code (use the chrome profile setting) but i can't export a HAR file using this one.</li>
  </ul>
  
  <p>Basically, i want to merge this 2 codes into one.
  Export a HAR file using chrome profile (to enable TLS1.3, HTTPS and QUIC)</p>
  
  <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  
  options = webdriver.ChromeOptions()
  options.add_argument("user-data-dir=C:\\Users\\AtechM_03\\AppData\\Local\\Google\\Chrome\\User Data\\Default")
  driver = webdriver.Chrome(executable_path=r'C:\path\to\chromedriver.exe', chrome_options=options)
  driver.get("https://www.google.co.in")
  </code></pre>
  
  <p>and</p>
  
  <pre class="lang-py prettyprint-override"><code>from browsermobproxy import Server
  from selenium import webdriver
  import os
  import json
  import urlparse
  
  server = Server("path/to/browsermob-proxy")
  server.start()
  proxy = server.create_proxy()
  
  chromedriver = "path/to/chromedriver"
  os.environ["webdriver.chrome.driver"] = chromedriver
  url = urlparse.urlparse (proxy.proxy).path
  chrome_options = webdriver.ChromeOptions()
  chrome_options.add_argument("--proxy-server={0}".format(url))
  driver = webdriver.Chrome(chromedriver,chrome_options =chrome_options)
  proxy.new_har("http://stackoverflow.com", options={'captureHeaders': True})
  driver.get("http://stackoverflow.com")    
  result = json.dumps(proxy.har, ensure_ascii=False)
  print result
  proxy.stop()    
  driver.quit()
  </code></pre>