title: How can we use local Chrome's cookies to login using Selenium?
body: <p>I'm trying to create a test suite that does a login to Google's Gmail website with Selenium.
  The problem is that Selenium opens a new Chrome window (Like incognito mode) with no cookies.
  My code:</p>
  
  <pre><code>driver = webdriver.Chrome(executable_path=r'chromedriver.exe')
  driver.get("https://hangouts.google.com/")
  
  elem = driver.find_element_by_id("gb_70")
  elem.send_keys(Keys.RETURN)
  
  elem2 = driver.find_element_by_id("identifierId")
  elem2.send_keys("mygmail@gmail.com")
  elem2.send_keys(Keys.RETURN)
  time.sleep(2)
  
  elem3 = driver.find_element_by_xpath("//*[@class='whsOnd zHQkBf']")
  elem3.send_keys("myPass")
  elem3.send_keys(Keys.RETURN)
  </code></pre>
  
  <p>From what I read on the internet it is possible to create 2 sessions, one for storing the cookies and the second for using those cookies.
  But this is not something that I'm looking for, I need it to use the cookies that Chrome store.</p>
  
  <p>I tried to read the Chrome's cookies manually (from APPDATA) but it seems that it is encrypted by the browser.</p>