I'm trying to import my Chrome profile for use in chromedriver. I want to use the stored login information in that profile to automatically log in to Facebook using selenium.
My current code:
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
import time
from selenium.webdriver.chrome.options import Options
options = webdriver.ChromeOptions()
options.add_argument('C:\\Users\\Jose Vitor\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 2')
driver = webdriver.Chrome(executable_path="C:/Program Files (x86)/chromedriver.exe", options=options)
driver.get('https://www.facebook.com/')
This code opens Chrome using chromedriver, but it creates 3 blank tabs and Facebook is not logged into automatically
Could someone help me solve the automatic login process to Facebook using chromedriver with a stored profile?
