Skip to content

Instantly share code, notes, and snippets.

@otaviomedeiros
Created April 23, 2014 19:18
Show Gist options
  • Save otaviomedeiros/11228831 to your computer and use it in GitHub Desktop.
Save otaviomedeiros/11228831 to your computer and use it in GitHub Desktop.
selenium firefox profile
profile = Selenium::WebDriver::Firefox::Profile.new
profile['browser.download.dir'] = "#{Rails.root.to_s}/tmp"
profile['browser.download.folderList'] = 2
profile['browser.helperApps.neverAsk.saveToDisk'] = "text/ofx,application/ofx,application/x-ofx"
profile['pdfjs.disabled'] = true
profile['plugin.state.java'] = 2 # plugin java always active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment