PHP browser controller and emulator for testing web apps, with one API over many drivers
open sourceMITfree
Mink is an open source browser controller and emulator for testing web applications, written in PHP: your test suite visits pages, traverses and manipulates them and interacts with them through one API, and a driver connects that API to a real browser emulator. Drivers include BrowserKit and Goutte (headless, no JavaScript), Selenium2 (WebDriver), Chrome, Zombie, Sahi and Selenium, and you can mix several sessions in one test. The Selenium2 driver ships as its own package, behat/mink-selenium2-driver. Konstantin Kudryashov wrote it.
Problems it solves
- drive a browser from my PHP tests
- write functional tests that click through my PHP web app
- switch my PHP browser tests between a headless client and Selenium
Features
- one API to control a browser: visit, traverse, manipulate and interact with pages
- drivers for BrowserKit/Goutte, Selenium2 (WebDriver), Chrome, Zombie, Sahi and Selenium
- several named sessions in one test
- custom drivers through DriverInterface
Limitations
- Drivers differ in what they support: BrowserKit cannot run JavaScript, and Selenium2 cannot read the response status code.1