Selenium ChromeDriver: unable to set user-data-dir

前端 未结 1 1130
时光说笑
时光说笑 2020-12-20 10:42

I\'m setting the user director to be my default User data directory as such (so I don\'t have to worry about entering passwords to sites and logging in each time):



        
相关标签:
1条回答
  • 2020-12-20 11:27

    you need to remove /Default/ because its not valid directory for --user-data-dir it is for --profile-directory

    options.add_argument('--profile-directory=Default')
    # or
    options.add_argument('--profile-directory=other_profile')
    
    0 讨论(0)
提交回复
热议问题