siteshooter icon indicating copy to clipboard operation
siteshooter copied to clipboard

delaying screenshot?

Open benhalverson opened this issue 7 years ago • 3 comments

@stevebritton Is it possible to delay the screenshot? When I'm taking screenshots of overlays and modals it sometimes takes the screenshot before everything is displayed. Here's an example screen shot 2017-09-28 at 11 14 54 am

benhalverson avatar Sep 28 '17 18:09 benhalverson

Hey @benhalverson,

Have you tried working with the delay setting in your siteshooter.yml file?

Also, if you're triggering overlays in an inject.js file, have you tried doing a setTimeOut?

stevebritton avatar Sep 29 '17 15:09 stevebritton

@stevebritton yes I've tried both the yml option and setting a timeout in the inject.js file

benhalverson avatar Oct 03 '17 17:10 benhalverson

@benhalverson,

I put together a quick example that will open a modal, start a timer within the model, and set the timer to the same value as the screen delay option and everything seems to be working as expected.

Example: https://github.com/devopsgroup-io/siteshooter/tree/master/examples/screenshot-delay

I'm wondering if this is an async issue?

stevebritton avatar Oct 14 '17 13:10 stevebritton