Selenium

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.

June 2020 - this article is out of date - checkout my newer posts on Automated Testing

Get started with Selenium IDE and Firefox

Selenium IDE is a browser extension for Firefox Web Application & Automated Testing – Firefox & Selenium IDE"). 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/
wget http://selenium.googlecode.com/files/selenium-server-standalone-2.24.1.jar

(or check the project page for the https://code.google.com/p/selenium/downloads/list 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

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

What have I said about Selenium?

Tags: Selenium, Testing, Firefox

Read more from my blog for an introduction and quick tips on developing in Hugo or UCTD.

Meet the author

Photo for Damien Saunders
Damien Saunders
An experienced management consultant and business leader interested in digital transformation, product centred design and scaled agile. If I'm not writing about living with UCTD (an autoimmune disease), I'm probably listening to music, reading a book or learning more about wine.
Find our more about me.