title: Use and retain the information of the current login session with Selenium
body: <p>I am automating certain tasks using Web Browser with Selenium. Suppose I open a webpage say Facebook or Quora using webdriver, the page that opened asks for the username and password again even though I am still logged in.</p>
  
  <pre><code>from selenium import webdriver
  
  b = webdriver.Chrome()
  b.get("https://www.quora.com/")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ofRcH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ofRcH.png" alt="enter image description here"></a></p>
  
  <p>I want the webdriver to use and retain the information of the current session so that I am able to land on my profile without having to enter my username and password again. How can I achieve this? Thanks. </p>
  
  <p><strong><em>Edit 1</em></strong> : I tried pointing it to the chrome user data, but isn't working. </p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  
  chrome_option = Options()
  chrome_option.add_argument('user-data-dir=~/Library/Application Support/Google/Chrome/Default')
  b = webdriver.Chrome(executable_path="/Users/mymac/Downloads/chromedriver",chrome_options=chrome_option)
  b.get("https://www.quora.com/")
  </code></pre>