Search code examples
firefoxseleniummime-typesdownload-manager

When trying to save a .jpg file it opens the dialog box even if custom firefox profile is configured not to


I want to create automated test in selenium webdriver with cucumber to download some stuff and I am using a custom firefox profile, but it seems not to work when downloading jpg files. Can you help me with tips & tricks how to make jpg files to be downloaded automatically instead of the download manager to show up? In Application tab I didn't find anything related to jpg files, and in General tab "Save files to" is set. My version of firefox is 34. When setting up the properties of the profile I've been using "image/jpeg" as mime type for jpg .


Solution

  • I have updated my firefox version and it solved the problem, guess it was a firefox bug. Now in v39 JPEG appear in application tab and preferences can be set against it. Initially I didn't want to update firefox version because I thought it was another bug, from maven dependencies ${selenium.version} selenium didn't take the last version. I manually changed it to the last version from repo and it works.