Compendium Developments Software Testing Reviews, Essays and ToolsOnline Training course teaches how to learn to Automate Web Applications using Selenium 2 WebDriver with Java


Selenium Simplified - Automated Web Testing with Java and Selenium RC

Where can you buy it?

The second edition of the book has been published.


Buy pdf e-book now for only $9.99

The purchase is handled and fulfilled by

Note: this e-book is a downloadable pdf file. Buying the e-book means that you can download the pdf file. You will not receive a hard copy version of the book as well. The paperback version of the book is available to purchase separately.


You can buy it from Amazon, and all good book stores.

If you have the first edition and are looking for downloads and errata then visit this page.

Paperback available from:

  • Lulu at only 24.49 + postage and packaging.

[See an 80 page preview of the 2nd edition at Lulu

What is "Selenium Simplified"?

Learn to Automate Web Sites with Selenium and Java

The 2nd edition of "Selenium Simplified", a tutorial guide to Selenium RC in Java has been published. It is a tutorial based book, so it has plenty of screenshots and walks you through the learning process. You can get a good idea of the content and writing style by reviewing the preview on This is an 80+ page preview containing the first few chapters. The preview alone should help you get started with Selenium-RC.

The book contains 417 pages split into 38 chapters, jam packed full of Selenium tutorial goodness. It is bursting at the seams with a desire to get the reader quickly and easily doing test automation in Java with Selenium.

Can I try before I buy?

You can read a preview for free online now:

Does it work with Selenium 2?

Selenium Simplified teaches the Selenium RC API. This API is perfect for people who want to get started with Selenium and is still used by many companies for their automation. The Selenium RC API is present in Selenium 2.0.

The second edition of the book has been tested with Selenium versions 2.19 and below.

What will I learn?

The book takes you right through the following (see the full table of contents here):

  • Installing the tools: Firefox, Eclipse, Java, Selenium, Firebug, Selenium-IDE, JUnit
  • Creating your first test using the IDE
  • Converting the IDE scripts to Java
  • Understanding the JUnit SeleneseTestCase class
  • Using the SeleneseTestCase class to take screenshots
  • Using Selenium without the SeleneseTestCase class
  • How to read the Selenium source code, and why you would want to
  • Refactoring your test methods
  • Understanding and using XPath Selectors
  • CSS Selectors
  • Automatically starting the Selenium Server from your tests
  • Selenium commands for simple HTML testing
  • Selenium commands for testing HTML Forms
  • Selenium commands for testing JavaScript enabled pages
  • Running tests outside Eclipse using Ant
  • Integrating the automated tests into Continuous Integration
  • Running tests under multiple browsers
  • Refactor tests into page object models
  • Data Driven Testing in JUnit
  • Capturing Screenshots on test failure
  • Cookie Handling
  • More on JavaScript enabled web applications
  • How to use the Selenium Backed WebDrivers
  • How to structure your tests, code, data and page object models
  • JUnit suites
  • Running your tests on multiple browsers using Ant and Hudson
  • Creating custom base classes to make your test writing easier
  • Making your tests run fast by re-using Selenium sessions
  • Integrating your tests with Subversion
  • You can download the example code used in the book
  • The book describes a complete production ready test project, you can download the code for this and can use it as a basis for your own test projects

I assume no previous experience with Java, or programming, or automated web testing. So I use a lot of screenshots and code examples to explain clearly what is going on.

By the time you finish this book you will be able to write tests on your own, and will have enough information to easily read and understand the various tutorials out there on the web and follow the official documentation.

I don't waste any time in this book by explaining what test automation is, or why you should do it. There is no fluff. "Selenium Simplified" is geared towards helping the reader learn how to automate web tests.

This book was released early as part of a beta programme to get feedback from real users about what they actually need. The comments I received from the readers in the Beta programme were great. This book has already taken people who couldn't code to the point where they are writing pretty advanced test suites in Java.

Why this book?

  • When I started writing this the Selenium documentation was hard to follow. The official documentation has improved massively, but still doesn't target the beginner audience that I target in this book. I wrote this to act as a supplement to the official documentation so that when you finish this book you can read and understand the official documentation easily. If you don't buy this book, then at least read the official selenium documentation to learn about Selenium-RC.
  • I interview a lot of testers. And it has been hard to recruit good testers with Selenium experience. I speak to so many people who get stuck at the IDE and don't progress further. I speak to so many testers who could get benefits from using automation but don't think they can understand the 'technical' aspects. And there was nowhere I could direct those testers so they could learn. I wrote this book so that those testers can read through this tutorial, work through it at their own pace, and learn to automate web tests.
  • When I started writing this there were no good training courses on Selenium. Now there are. But they cost upwards of 400. For many people that cost is a bit off putting, so by creating an affordable tutorial book there are more options in how people approach the learning of this tool.

I honestly wrote this because I want to see more testers with the technical skills to incorporate automation into their test processes. And I know that it can seem daunting before you start. But automation is actually pretty simple. And I hope that by working through this tutorial, anyone can pick up the basics and start doing automated web testing.

About the Author: Alan Richardson

I've been doing testing my entire professional career - knocking on 18 years now. And over that time I've done a lot of automation, in a lot of different tools. I've also done a lot of programming in a lot of different languages.

At work, we use Selenium for our automation. We use Selenium because it is open source, and it is very actively maintained. Selenium has been adopted and improved by Google so it has a great future.

I write the tests in Java because I work on applications that are written in Java so I can have the developers help me whenever I get stuck. But Java has fantastic free IDE support (as you'll see if you read "Selenium Simplified")

I have been helping the testers that work in my team improve their automation and Selenium skills. This text is a result of the learning I have made while doing that.

Free Downloads

Sourcecode updated to work with Selenium 2 for the 2nd edition

Buy Now

e-book on Automated Testing with Selenium, now Available - only $9.99.

Buy pdf e-book now for only $9.99 The purchase is handled and fulfilled by

Note: this e-book is a downloadable pdf file. Buying the e-book now means that you can download the pdf file. You will not receive a paperback version of the book as well. The paperback version of the book is available to purchase separately.

Errata For 2nd Edition

The errata is maintained on the SeleniumSimplified site. About 2nd Edition page