Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Created April 26, 2011 17:48
Show Gist options
  • Save wizardishungry/942739 to your computer and use it in GitHub Desktop.
Save wizardishungry/942739 to your computer and use it in GitHub Desktop.
Script to launch selenium server locally and run a test harness
#!/bin/bash
java -jar jars/selenium-server.jar -trustAllSSLCertificates &
ME=$!
CODE=1
until [ "$CODE" -eq "0" ]; do
sleep 0.25
nc -z localhost 4444
CODE=$?
done
./harness.pl -h localhost -p 4444 -t httphost.example.com
kill $!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment