Unable to suppress a firefox pop-up for a file download
问题 Firefox - 51.0.1 Selenium - 3.0.5 Ubuntu - 16.04 (64bit) Here is what my code looks like: profile = Selenium::WebDriver::Firefox::Profile.new profile['browser.download.dir'] = "/tmp/webdriver-downloads" profile['browser.download.folderList'] = 2 profile['browser.helperApps.neverAsk.saveToDisk'] = "application/pdf" profile['pdfjs.disabled'] = true driver = Selenium::WebDriver.for :firefox, :profile => profile driver.get "https://s3.amazonaws.com/shopsocially-misc/vfs/vfs_test_sample.csv"