I try to lounch Chrome with my Profile, but it does`t enter to Profile. (User 1, the login has not been completed in Browser window)
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
options = webdriver.ChromeOptions()
options.add_argument("--window-size=1920,1080")
options.add_argument ("--user_data_dir=C:\Users\shulya403\AppData\Local\Google\Chrome\User Data")
options.add_argument ("--profile-directory=Default")
options.add_argument ("--remote-debugging-port=9222")
self.driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
Other Crome window – closed, the only browser Chrome window – is opened by webdriver.
C:Usersshulya403AppDataLocalGoogleChromeUser DataDefault – realy present in the system
Other options (windows-size and others, working properly).
What is the problem with th code?