CI: Add more logging before trying to take screenshot
Seems that's where it's failing:
https://337-598343-gh.circle-artifacts.com/0/tmp/circle-artifacts.6yTG23L/screenshots.log
diff --git a/script/screenshots.js b/script/screenshots.js
index e63bf06..5e0c1fa 100644
--- a/script/screenshots.js
+++ b/script/screenshots.js
@@ -107,12 +107,13 @@
browserDriver.safeExecute('document.documentElement.clientHeight')];
})
.spread(function(scrollHeight, viewportHeight) {
- console.log(cfg.browserName,cfg.platform,'get scrollHeight, clientHeight');
+ console.log(cfg.browserName, cfg.platform, 'get scrollHeight, clientHeight', scrollHeight, viewportHeight);
// Firefox and Internet Explorer will take a screenshot of the entire webpage,
if (cfg.browserName != 'Safari' && cfg.browserName != 'Chrome' && cfg.browserName != 'MicrosoftEdge') {
// saves file in the file `piecesDir/browser_version_platform/*.png`
var filename = piecesDir+'/'+browser+'_'+platform+'.png';
+ console.log(cfg.browserName, cfg.platform, 'about to saveScreenshot');
return browserDriver.saveScreenshot(filename)
.then(willLog(cfg.browserName,cfg.platform,'saveScreenshot'))
.log('browser')