Windows 7下的运行测试
在casperjs中,我试图打开https页面,如下所示:
...
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将不会打开链接,,但是使用"http“表示来自本地的相同页面,它只起作用。。
然后我尝试了一些东西,比如:
尽管如此,卡珀尔还是无法打开它。请给我任何想法。
发布于 2016-10-14 17:02:54
这对我起了作用:
casperjs test mytest1.js --ignore-ssl-errors=truehttps://stackoverflow.com/questions/27101920
复制相似问题