Answer the question
In order to leave comments, you need to log in
Can't download pdf of selenium site, how?
options = webdriver.ChromeOptions()
options.add_experimental_option('prefs', {
"download.default_directory": "/home/mirex/PycharmProjects/parser",
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"plugins.always_open_pdf_externally": True #
})
self.driver = webdriver.Chrome(options=options)
self.driver.get(self.url)
sleep(3)
self.driver.quit()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question