My TBSelenium script generally working well with sites. I'm able to login and retrieve content successfullly.
I've been trying to get it to download a pdf from a site.
I am able to click the pdf download button with my script but nothing is downloaded.
I have tried to configure the tor browser not to prompt following a pdf download request using Firefox guidelines for the same purpose.
Below is the superset of all the prefs I've set to make this work.
(I'm sure that some are not needed but I've been clutching at straws...)
Tips or tricks to get this working much appreciated.
Many thanks
pref_dict = {"browser.download.defaultFolder": "/results/pdfs"
,"browser.download.dir": "/results/pdfs"
,"browser.download.folderList": 2
,"browser.download.manager.alertOnEXEOpen": False
,"browser.download.manager.closeWhenDone": True
,"browser.download.manager.focusWhenStarting": False
,"browser.download.manager.showAlertOnComplete": False
,"browser.download.manager.showWhenStarting": False
,"browser.download.manager.useWindow": False
,"browser.download.panel.shown": False
,'browser.download.showTorWarning': False
,"browser.download.viewableInternally.enabledTypes": ""
,"browser.helperApps.alwasyAsk.force": False
,"browser.helperApps.neverAsk.saveToDisk": "application/pdf, application/force-download"
,"pdfjs.disabled": True
,"services.sync.prefs.sync.browser.download.manager.showWhenStarting": False}
TorBrowserDriver(tbb_path=tbb_path,
tor_cfg=cm.USE_RUNNING_TOR,
pref_dict=pref_dict)
My TBSelenium script generally working well with sites. I'm able to login and retrieve content successfullly.
I've been trying to get it to download a pdf from a site.
I am able to click the pdf download button with my script but nothing is downloaded.
I have tried to configure the tor browser not to prompt following a pdf download request using Firefox guidelines for the same purpose.
Below is the superset of all the prefs I've set to make this work.
(I'm sure that some are not needed but I've been clutching at straws...)
Tips or tricks to get this working much appreciated.
Many thanks