gulp-phantomcss icon indicating copy to clipboard operation
gulp-phantomcss copied to clipboard

Page is not loading properly some components are missing

Open DakshayaniChebrolu opened this issue 9 years ago • 3 comments

Not loading some of the components in the page even i have made the wait

gulp file

gulp.task('test', function() { del.sync('./failures'); del.sync('./screenshots/**/.{fail.png,diff.png}'); console.log('Phantom CSS starting'); return gulp.src('test/.js') .pipe(phantomcss({ mismatchTolerance: 2.5 })); });

Casper

casper.start('https://erhvervselvbetjening.tdc.dk/?loginAction=start').then(function () { this.viewport(1280, 1024); this.wait(1000, function () { phantomcss.screenshot('html'); }); });
casper.run();

Login component is not seen in the screenshot

screenshot_0

But the actual page is looking like below, having the login component

actual_page

Please help to solve this

DakshayaniChebrolu avatar Dec 29 '16 12:12 DakshayaniChebrolu

React Component code is not rendering in html. Please find the versions casperjs - 1.1.3 phantomjs-prebuilt - 2.1.7 phantomcss - 1.1.3 resemblejs - 2.2.3 gulp-phantomcss - 0.3.0

Please help me to solve this issue. why i am unable to capture the react components?

DakshayaniChebrolu avatar Dec 30 '16 08:12 DakshayaniChebrolu

Could be an issue with casper / phantomcss? this module is just a wrapper around those for running with gulp.

Do your tests run okay when you're using phantomcss directly?

danbroooks avatar Jan 03 '17 12:01 danbroooks

I investigated about this issue further and got the below error at the Audio component This is may be because of phantomjs or casperjs doesn't supporting the Audio Error: ReferenceError: Can't find variable: Audio

Does any one know about the workaround or solution for this issue? Thanks in advance

DakshayaniChebrolu avatar Jan 04 '17 08:01 DakshayaniChebrolu