📌  相关文章
📜  如何为文件夹设置 chrome 选项 python selenium - Python 代码示例

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

代码示例1
chromeOptions = webdriver.ChromeOptions()
prefs = {"download.default_directory" : "/some/path"}
chromeOptions.add_experimental_option("prefs",prefs)
chromedriver = "path/to/chromedriver.exe"
driver = webdriver.Chrome(executable_path=chromedriver, chrome_options=chromeOptions)