title: Selenium webdriver not using selected profile (user-data-dir)
body: <p>I'm new to using Selenium &amp; Webdriver, but from what I've been able to read, I should be able to start the webdriver using an existing chrome profile. I am doing this so that I can make use of the profile's chrome extensions &amp; saved accounts. I have been attempting to do so using the below Python snippet inside of a jupyter notebook.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  from selenium.webdriver.chrome.service import Service
  from webdriver_manager.chrome import ChromeDriverManager
  
  options = webdriver.ChromeOptions()
  options.add_argument('--no-sandbox')
  options.add_argument(&quot;user-data-dir=/Users/jack/Library/Application Support/Google/Chrome/Profile 2/&quot;)
  driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
  driver.get(&quot;https://www.google.com/&quot;)
  
  print(driver.capabilities)
  </code></pre>
  <p>Upon executing the cell, a new chrome window pops up as expected with the appropriate web page, but the window does not have my specified profile. It instead shows &quot;Person 1&quot;, and appears to be a blank profile from what I can tell.</p>
  <p>No errors are thrown, and the print statement returns the following information:</p>
  <pre><code>{'acceptInsecureCerts': False, 'browserName': 'chrome', 'browserVersion': '96.0.4664.110', 'chrome': {'chromedriverVersion': '96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-heads/4664@{#947})', 'userDataDir': '/Users/jack/Library/Application Support/Google/Chrome/Profile 2/'}, 'goog:chromeOptions': {'debuggerAddress': 'localhost:59309'}, 'networkConnectionEnabled': False, 'pageLoadStrategy': 'normal', 'platformName': 'mac os x', 'proxy': {}, 'setWindowRect': True, 'strictFileInteractability': False, 'timeouts': {'implicit': 0, 'pageLoad': 300000, 'script': 30000}, 'unhandledPromptBehavior': 'dismiss and notify', 'webauthn:extension:credBlob': True, 'webauthn:extension:largeBlob': True, 'webauthn:virtualAuthenticators': True}
  </code></pre>
  <p>It shows the correct path to the <code>userDataDir</code> I want, yet the window does not match. I'm not sure what I'm doing wrong here, so any help or advice would be appreciated!</p>