Troelskin's answer is incorrect. There are ways to run "headless" browsers with Watir that do not require a "full working environment." Having said that, I don't know which method might be suitable for Heroku.
Other options for headless automation (if you're using Ruby): Mechanize with Open-Uri with (optionally) Nokogiri.
source share