Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
  1. Code
  2. PHP

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?

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.