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

Hey! Before you go, checkout my book, Django Standalone Apps! It's a bit rough around the edges as I'm writing it in public, which means chapters get released periodically. But I'd love if you'd check it out (it's free to read online).