Selenium is an open source automated testing framework that first launched in 2004 and allows testing of web applications across different browsers and platforms. It has four main components - Selenium IDE for recording and playing back tests in a browser, Selenium RC which is its first API, Selenium WebDriver which is its second and improved API, and Selenium Grid for distributed testing on multiple machines. It works by simulating user interactions with a web application and then validating the results.