In April 2014, it was announced on public-webapps that the Filesystem API spec is not being considered by other browsers. # do whatever you need to do to auth/login/click/etc. It looks like Mega needs the FileSystem API but. I have a longer writeup in this StackOverflow answer, but here's a quick example: import requests
#Cant download firefox pdf#
I solved this problem by passing the selenium session to the Python requests library and then fetching the PDF from there. Again, it works fine on my virtual machine where I can see what's happening, but fails to download the PDF every single time on the live server, without throwing any sort of error. The problem is the live machine is a server and as such has no physical screen for me to see exactly what's happening, making this much harder to fix. For the other two, press Winket-i, select Recover and then Reset this PC.
#Cant download firefox how to#
There are lots of posts on how to create the USB/DVD. It is worth trying this route are your programs may be fine after. This will keep all your programs already installed and your data. I am also making sure I give the script enough time to download the file (30+ seconds to download a sub 1mb PDF on a wired connection should be more than enough). Browse to the root of the install USB/DVD and run setup.exe. As far as I can tell an OS level window to confirm the download is not being opened as I can still direct the script to click on other parts of the site after the download link has been clicked.
The variable foldername is correct as the same variable is used to open and write to a log fail which functions fine. On the virtual machine the preferences lines ended at disabling pdfjs and this worked fine, after that is extra lines I have tried to solve the problem on the live machine. Here are the lines I have used to set up the firefox profile: fxProfile = webdriver.FirefoxProfile()įt_preference("",2)įt_preference("",False)įt_preference("",foldername)įt_preference("","application/pdf")įt_preference("pdfjs.disabled",True)įt_preference("", "99.0") įt_preference("", False) įt_preference("plugin.disable_full_page_plugin_for_types", "application/pdf")įt_preference("", False) ĭriver = webdriver.Firefox(firefox_profile=fxProfile) I have used the profile preferences method to get the file to download, and this has been working fine on the virtual machine I have used for development, however when moving the script to the live server it does not seem to want to download the required PDF at all. I have a selenium script that as part of it's execution needs to download a PDF, and the download is necessary as the PDF is used later on.