0 | I am trying to hit a page https://portal.checkuphc.com/login using Casperjs, page is built using Angularjs1.5 component based. I always get the blank screen when I capture. I tried with casper.waitForSelector, this.wait but no luck. Any help is really appreciated. var casper = require('casper').create({ engine: 'slimmerjs', verbose: true, logLevel: 'debug', exitOnError: false, ignoreSslErrors: false, pageSettings: { javascriptEnabled: true, loadImages: true, loadPlugins: true, localToRemoteUrlAccessEnabled: true, userAgent: 'Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.64 Safari/537.36', XSSAuditingEnabled: false, logLevel: 'debug' } }); phantom.casperTest = true; casper.test.begin('Testing checkup', 1, function(test) { casper.start('https://portal.checkuphc.com/login', function() { casper.capture('screenshots/portal-checkup-search-1.png'); }); casper.run(function() { test.done(); }); }); |
--engine=slimerjs
and the Mastodon website also works when run with SlimerJS + Firefox. It just doesn't work with PhantomJS when I tried it some weeks back.