I’m trying to open a youtube page with my Chrome profile so I don’t have to sign in and do the MFA which ruins the automation. This is my code
from selenium import webdriver from selenium.webdriver.chrome.options import Options import time url = 'https://www.youtube.com/' options = webdriver.ChromeOptions() options.add_argument(r"C:\Users\User01\AppData\Local\Google\Chrome\User Data\profile 1") options.add_argument(r'--profile-directory=Profile 1') driver = webdriver.Chrome(options=options) driver.get(url)
According to multiple sources online this code should do that but it is still opening the test browser.
I’ve tried multiple solutions online asked a few AI tools and no luck so far