CasperJS displaying blank page

116 views
Skip to first unread message

Sujatha Kanathala

unread,
Mar 10, 2017, 2:11:23 PM3/10/17
to CasperJS
Using  CasperJS, I see Blank WebPage but can grab HTML source code using getHTML().

CasperJS version is 1.14

Phantomjs version is 2.1.1

Can you help me why I'm seeing blank web page.

philippe....@oscaro.com

unread,
Mar 14, 2017, 11:00:28 AM3/14/17
to CasperJS
Hi Sujatha Kanathala,

Could you confirm your "blank" page with the following script?

var casper = require('casper').create();

casper
.start('http://www.google.fr/', function() {
   
this.echo(this.getHTML());
   
this.capture("screenshot.jpg");
});

casper
.run();

On my side:
CasperJS version = 1.1.2
PhantomJS version = 2.1.1
Reply all
Reply to author
Forward
0 new messages