0

I have seen and followed the answer but faced same error, don't know why this happened.

options = Options()
options.add_argument("user-data-dir=C:\\Users\\AdnanAwan\\AppData\\Local\\Google\\Chrome\\User Data")
options.add_argument('--profile-directory=Profile 2')
driver = webdriver.Chrome(executable_path=r'C:\Users\AdnanAwan\RealLove\chromedriver.exe', chrome_options=options)

ERROR

InvalidArgumentException: Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir

I open Jupyter notebook in firefox and closed the chrome browser for manual browsing and after that run the script through chrome but was not able to resolve it, furthermore when I use selenium chrome without chrome profile, the UDEMY website does not load properly. Any way to get it done?

enter image description here

0 Answers0