i want to auto download files and save them in directory, everything is done but firefox stills save files in User download folder e.g. C:\\users\\root\\Downloads
There are couple methods to a solution for this problem,
os.path.exists
or os.isfile
Firefox
launches with the selenium driver, navigate to about:config
and check the look up browser.download.dir
, to make sure there was a change.profile.set_preference
(profile.set_preference("browser.download.folderList",2
) has 2
as a second argument, since 0
means to download to the desktop, 1
means to download to the default "Downloads" directory, 2
means to use the directory you specify in "browser.download.dir"