Skip to content

Commit

Permalink
Updated content type specified for downloading an image file per issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Haeffner committed Jun 30, 2017
1 parent f9bb918 commit 3c382c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02-download-a-file/ruby/download.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def setup
profile = Selenium::WebDriver::Firefox::Profile.new
profile['browser.download.dir'] = @download_dir
profile['browser.download.folderList'] = 2 # the last folder specified for download
profile['browser.helperApps.neverAsk.saveToDisk'] = 'images/jpeg, application/pdf'
profile['browser.helperApps.neverAsk.saveToDisk'] = 'image/jpeg, application/pdf'
profile['pdfjs.disabled'] = true #need to set with PDFs or else it will view them in the browser
@driver = Selenium::WebDriver.for :firefox, profile: profile

Expand Down

0 comments on commit 3c382c7

Please sign in to comment.