milan is a Python based browser testing and capturing tool, designed for end-to-end testing and for creating beautiful screenshots and video clips of web applications. To do so, milan visually emultates one or more browser windows and a cursor, in HTML and JavaScript.
Documentation: pages.fscherf.de/milan/