Skip to content

Instantly share code, notes, and snippets.

@otaviomedeiros
Created April 23, 2014 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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