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

[php]mkdir selenium
cd selenium/
wget http://selenium.googlecode.com/files/selenium-server-standalone-2.24.1.jar
[/php]
(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

[php]cd selenium/
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

http://127.0.0.1:4444/wd/hub/static/resource/hub.html

Stop the Selenium Server

Copy and visit this URL in your browser

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

Tags: ,

Read previous post:
HOW TO: Install Selenium 2 for Mac OS X / Python

If you own a Mac and want to get started with Selenium for Automated Testing of your web apps, then...

Close