This pull request allows us to access the WebPage before generating the screenshot. This is helpful to me because I want to add cookies and access pages that require authentication. With this pull request I can use something like the following Gruntfile.js:
This pull request allows us to access the WebPage before generating the screenshot. This is helpful to me because I want to add cookies and access pages that require authentication. With this pull request I can use something like the following Gruntfile.js:
grunt autoshot:public
- takes a screenshot of localhost:8000 as normalgrunt autoshot:authenticated
- adds a cookie which gives us access to the dashboard at localhost:8000 which requires authenticationWhat you do in preCreate (how you get the cookie value, for example) is up to you.