How to use predefined chrome profile in selenium for python?

元气小坏坏 提交于 2019-12-07 02:51:25

You just need add one more argument:

options.add_argument('--profile-directory=Profile 1')

Profile 1 - is a directory of your profile and its name is not like a profile name. You can explore all the profile direstories in your user-data-dir. How to find out what dir is the dir for "test 2" profile - you can find here https://superuser.com/a/723145

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!