Debugging CaptureHandler for screenshots

CaptureHandler has an option to debug at PhantomJS level. This is documented in the guide for CaptureHandler.

While sending the request, you can mention a debug flag as below

/capture?debug=2&delay=3000&url=...

Other notes

  1. A 3 second difference between the request delay and timeout argument for CaptureHandler is a working recommendation. For instance, in JS request the delay can be 8000 (milliseconds) depending on your dashboard and timeout in CaptureHandler (default is 10 seconds) can be 11 (kwargs section in YAML)
  2. ES6 isn’t supported in PhantomJS. Please be mindful of this while debugging