If you own a Mac and want to get started with Selenium for Automated Testing of your web apps, then you’re already most of the way there. The Mac operating system already offers a number of baked in solutions and command line tools like Python, Ruby and Java.
Get started with Selenium IDE and Firefox
Selenium IDE is a browser extension for Firefox. It’s useful to use this to create test cases so install this first.
Download & Install Selenium Java Server
Now you just have to get the selenium standalone java server so type
(or check the project page for the latest Selenium Standalone Server)
Start the Selenium Standalone Java Server
While you’re in Terminal open a new shell / terminal window and type
java -jar selenium-server-standalone-2.24.1.jar[/php]
You’ll see some verbose scripting about the server starting and you can visit this URL to check the server status
Stop the Selenium Server
Copy and visit this URL in your browser