3 ms·
Thank you for PhantomJS! Been using it for testing, generating PDFs and screenshot.
by tal_berzniz 10y ago
Thank you for PhantomJS! Been using it for testing, generating PDFs and screenshot.
- amelius 10y agoYes, thanks PhantomJS! I'm wondering, are there any examples out there for generating screenshots on headless Chrome?
- throwaway2016a 10y agoFrom the docs it sounds like it is largely compatible with Selenium https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md https://chromium.googlesource.com/chromium/src/+/lkgr/headle... If that is true, the takeScreenshot() should work as normal hopefully.
- veidr 10y agoI can confirm that. Here's an example of how we take screenshots when automated tests fail, using Selenium + Chrome: https://gist.github.com/masonmark/2332c1238a2fa70b5e4fcfffdcd76ca3 https://gist.github.com/masonmark/2332c1238a2fa70b5e4fcfffdc...