Reputation: 41
Running test on Windows 7
In casperjs i tried to open my https page as below:
...
var Link1 = 'https://mylink1.com/';
casper.waitForSelector("input#KeyField", function() {
console.log(Link1);
this.sendKeys('input#KeyField', Link1 );
});
casper.then(function() {
this.echo(this.getTitle());
this.capture(dir1 + 'image1.png', {
top: 0, left: 0, width: 2000, height: 1000
});
});
...
Casperjs will not open the link, but using "http" for same page from my local, it simply works.
Then I have tried stuff like:
still, casperjs could not open it. any ideas pls.
Upvotes: 1
Views: 1014
Reputation: 69
This worked for me:
casperjs test mytest1.js --ignore-ssl-errors=true
Upvotes: 1