Sample of headless JS test framework - Casper