Getting started with Selenium testing in Django 1.4

Last Tuesday’s Django District meetup was a series of lightning talks focused on testing in Django. I presented on getting started with in-browser testing in Django, using Selenium.

Slides are below, or download from the example repository. Hopefully I’ll get a chance to annotate these better and add some more examples in the next week or so.

Getting started with Django and Selenium So, in browser testing? What's new in Django 1.4? LiveServerTestCase LiveServerTestCase runs a dev server for testing Starting tests Firefox activated Firefox closed and tests over Selenium WebDriver Drive different browsers WebDriver actions Finding page elements Providing data input More interactions Element methods Give the TestCase a WebDriver object Write test methods that interact with the browser Test effects of integrated JavaScript Wrap up

First published April 26, 2012