title: How to open a Chrome Profile through Python
body: <p>My script I have been writing has been working great. I just added the option so it would open a profile on chrome using this code.</p>
  
  <pre><code>options = webdriver.ChromeOptions
  browser = webdriver.Chrome(executable_path=r"C:\Users\princess\AppData\Local\Programs\Python\Python36-32\chromedriver.exe", chrome_options=options)
  options.add_argument(r'user-data-dir=C:\Users\princess\AppData\Local\Google\Chrome\User Data')
  options.add_argument('--profile-directory=Profile 1')
  </code></pre>
  
  <p>When used, I get this error code. </p>
  
  <pre><code>C:\Users\Princess\Desktop&gt;CHBO.py
  Traceback (most recent call last):
    File "C:\Users\Princess\Desktop\CHBO.py", line 12, in &lt;module&gt;
      browser = webdriver.Chrome(executable_path=r"C:\Users\princess\AppData\Local\Programs\Python\Python36-32\chromedriver.exe", chrome_options=options)
    File "C:\Users\Princess\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 59, in __init__
      desired_capabilities = options.to_capabilities()
  TypeError: to_capabilities() missing 1 required positional argument: 'self'
  </code></pre>
  
  <p>How can I fix this?</p>