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)

上一篇:oracle解锁表


下一篇:[转]ASP.NET MVC 5 - 给数据模型添加校验器