Created
January 31, 2013 17:12
-
-
Save charlycoste/4684457 to your computer and use it in GitHub Desktop.
CasperJS script utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var captureCount = 1; | |
var startTime = new Date().getTime(); | |
var screenshotPath = 'screenshots'; | |
function screenshot(casper) { | |
casper.capture(screenshotPath+'/'+startTime+'/'+captureCount+'.png'); | |
captureCount++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment