I am new to python web driver and I am trying to use this code so that I can download a text file of .lst extension:
driver = webdriver.FirefoxProfile()
driver.set_preference("browser.download.folderList",2)
driver.set_preference("browser.download.manager.showWhenStarting",False)
driver.set_preference("browser.download.dir","/selenium/files")
driver.set_preference("browser.helperApps.neverAsk.saveToDisk","text/lst")
self.web = webdriver.Firefox(firefox_profile=driver)
This code worked fine for me when I wanted to download the zip file and used application/zip as the file type to download it. But I am not getting how to download the .lst file?