📜  记住用户的硒选项 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:49.934000             🧑  作者: Mango

代码示例1
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = webdriver.ChromeOptions() 
options.add_argument("user-data-dir=C:\\Path") #Path to your chrome profile
w = webdriver.Chrome(executable_path="C:\\Users\\chromedriver.exe", chrome_options=options)