HOW TO: Get started with Selenium 2 for Mac OS X / Java

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.

Read my guide to setup Selenium with Pythonwhich is probably easier if you want to get started immediately

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

mkdir selenium
cd selenium/

(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

cd selenium/
java -jar selenium-server-standalone-2.24.1.jar

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


Tags: ,