Using both JSSH and FireWatir you can remote control Firefox browser and do complex web tasks which can't normally do. Here is the guide on how to get started.
Install JSSH for Firefox 3
Install Ruby FireWatir
sudo gem install firewatir
Copy following code into some ruby file and execute the file to test the setup.
require 'rubygems' require 'firewatir' include FireWatir ff = Firefox.new ff.goto("yahoo.com") ff.close