【发布时间】:2019-10-14 11:55:24
【问题描述】:
【问题讨论】:
-
您是否尝试使用 Selenium 单击 Enter 或配置您的浏览器以使其在没有提示的情况下开始下载?
标签: python selenium selenium-webdriver
【问题讨论】:
标签: python selenium selenium-webdriver
如果你使用壁虎驱动
from selenium.webdriver.firefox.firefox_porfile import FirefoxProfile()
profile = FirefoxProfile()
# Save pdf without asking
profile.set_preference("browser.helperApps.neverAsk.saveToDisk", "application/pdf")
你可以找到其他文件的字幕
编辑: 我在这里找到了一个类似的链接:
In selenium python webdriver, I'm not able to download a text file with a .lst extension
【讨论】: