且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Python Selenium Webdriver通过默认的Chrome配置文件打开URL

更新时间:2022-12-05 19:19:19

我正在使用两个参数,并且在开发中效果很好

I am using two arguments and work well in development

"user-data-dir = C:\ Users \ NameUser \ AppData \ Local \ Google \ Chrome \ User Data"

个人资料目录=默认"

如果要使用另一个配置文件(不是默认配置文件),则必须创建它,而仅需更改第二个参数.所有配置文件都存储在用户数据"文件夹中

If you want use another profile (not default) you have to create it and only you have to change the second argument. All profiles are stored in 'User Data' folder

个人资料目录=个人资料1"