Python Selenium Printing Save-As-PDF Waiting for Filename Input
问题 I'm trying to save a website as PDF through printing dialog. My code allows me to save as pdf, but asks me to input a filename, which I don't know how to pass a filename to the pop up box. Attached is my code: import time from selenium import webdriver import os class printing_browser(object): def __init__(self): self.profile = webdriver.FirefoxProfile() self.profile.set_preference("services.sync.prefs.sync.browser.download.manager.showWhenStarting", False) self.profile.set_preference("pdfjs