How to auto-download through Firefox browser using FirefoxProfile?
I'm working with selenium java where I need to download pdf files, I referred this , this and also this answers here, but seems like nothing is working in my situation. Is it due to setting a new firefox driver instance i.e. System.setProperty("webdriver.firefox.bin", "D:\\FFF\\firefox.exe"); ? I'm stuck here.However when I manually click on save file on the MIME dialog it saves correctly to my custom location, also my download link code resides in another java class and below code in another class , but I use the same driver as declared in this class, below is my code, FirefoxProfile profile