mlison/protractor-jasmine2-screenshot-reporter

How to pass options to screenshot function call?

Closed this issue · 4 comments

I'm trying to use this tool with the new '--headless' option in the latest Chrome Canary build. When I generate screenshots they are all empty, and it appears to be related to this issue: https://github.com/schnerd/chrome-headless-screenshots/issues/1

The solution to the issue is to pass {fromSurface: true}. Is it possible to pass this option in the reporter so that my screenshots are not blank?

  • Did you actually try if this works? I read in the documentation that this option defaults to true so in theory there shouldn't be a need to pass it.
  • How does it affect the capture if you run it without --headless option?
benc commented

I also had blank screenshots, but it worked when I switched to node 8.

This was also fixed for me by updating to node 8. Not sure why it works, but thanks for the tip!

Unable to get this to work, even using Node 8.