64x64 icon dark hosting
Get a Tuts+ subscription for just $45! Deploy New Relic now to claim.

How to Use Selenium 2 With PHPUnit

This post is part of a series called Test-Driven PHP.
Hands-On Unit Testing With PHPUnit
Chatting With The Grumpy PHP Programmer

In this lesson, we will learn how to work with Selenium 2 directly within PHPUnit. For those unfamiliar, Selenium gives us an easy way to automate the browser. This makes it perfect for writing user acceptances tests.

Choose 720p for the clearest picture.

Show Links

Closing Notes

I'm relatively new to working with Selenium, so, if any of you have some tips or advice related to improving workflow, definitely chime in below! I'm currently researching the best way to speed up the tests, or, at the very least, hide the browser during tests. Have you found a good way to deal with this? Virtual machines?