火狐浏览器设置下载时不弹出提示窗口
profile = webdriver.FirefoxProfile()
profile.set_preference(“browser.helperApps.neverAsk.saveToDisk”,”application/octet-stream”)
driver = webdriver.Firefox(Firefox_profile=profile)
时间: 2024-10-10 02:31:54
profile = webdriver.FirefoxProfile()
profile.set_preference(“browser.helperApps.neverAsk.saveToDisk”,”application/octet-stream”)
driver = webdriver.Firefox(Firefox_profile=profile)