In order to test a certain web page in all of my development browsers, I wrote a simple shell script that will open a new instance of each of my browsers and automatically point it to a given URL.
This script is designed for OSX and will likely need some tweaks for a Linux distribution (or perhaps a complete rewrite) but the concept can be easily transferred.
# $1: URL open -a "/Applications/Google Chrome.app" $1 -g -n open -a "/Applications/Google Chrome Canary.app" $1 -g -n open -a "/Applications/Safari.app" $1 -g -n open -a "/Applications/Webkit.app" $1 -g -n open -a "/Applications/Firefox.app" -g $1 -g -n open -a "/Applications/FirefoxAurora.app" -g $1 -g -n open -a "/Applications/Opera.app" $1 -g -n open -a "/Applications/Opera Beta.app" $1 -g -n
On my setup I additionally load an extra app called "CoRD" which is used to connect to remote Windows machines for Internet Explorer testing.
open -a "/Applications/CoRD.app" -g -n
-g option after each
open command tells the given app to open in the background. Finally the
-n switch will force a new instance of the browser, even if you already have one running, so that the browser is in a clean state to test with.
Finally I symlink this file to my
/usr/local/bin directory so that the script is always available on my PATH.
$ cd /usr/local/bin $ ln -s browser-test ~/path/to/browser-test.sh $ chmod a+x browser-test
Complete these steps in order and you will be able to call
browser-test from any directory in the terminal.
$ browser-test http://blog.blakesimpson.co.uk/