opts = webdriver.ChromeOptions()
opts.add_argument('--allow-profiles-outside-user-dir')
opts.add_argument("user-data-dir=C:\\Users\\HP\\AppData\\Local\\Google\\Chrome\\User Data")
opts.add_argument('--profile-directory=Profile 1')
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=opts)