Scriptable command line browser?
coffee: If into Ruby, I saw a presentation on how to do what your looking for, check out: http://jjinux.blogspot.com/2009/10/ruby-introduction-to-beha... - Should be a good starting point...