【发布时间】:2020-12-04 05:31:31
【问题描述】:
这是我的代码:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument(r"user-data-dir=C:\Users\shahr\AppData\Local\Google\Chrome\User Data\Profile 1") #Path to your chrome profile
w = webdriver.Chrome(executable_path=r"C:\Program Files (x86)\chromedriver.exe", options=options)
我从其他 StackOverFlow Answers 中尝试过,但它拒绝打开所需的配置文件
【问题讨论】:
-
尝试删除 options.argument。
-
@bonifacio_kid 你是什么意思