Selenium is a tool for automating web browser testing. It supports recording and playback of tests across browsers including mobile browsers. Selenium 2 uses "native" communication with browsers via drivers. The Selenium module for Drupal provides classes that make it easy to write automated tests for Drupal using Selenium. XPath locators can access elements in complex ways while CSS locators are faster but less flexible. Running Selenium tests on a headless server using Xvfb avoids showing browser windows during testing.