Python Selenium set Chrome Preference Download Location.

Posted Raul2018

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python Selenium set Chrome Preference Download Location.相关的知识,希望对你有一定的参考价值。

def set_chrome_pref(self):
chromeOptions = webdriver.ChromeOptions()
prefs = {"download.default_directory": ‘des_dir‘}
chromeOptions.add_experimental_option("prefs", prefs)
driver = webdriver.Chrome(chrome_options=chromeOptions)





以上是关于Python Selenium set Chrome Preference Download Location.的主要内容,如果未能解决你的问题,请参考以下文章