问题描述
这是我的代码
var casper = require('casper').create();
verbose: true;
logLevel: 'debug';
pageSettings: {
loadImages: true;
loadplugins: true
};
var url ="https://moodle-ingenieurs.cesi.fr/login/index.PHP?authCAS=CAS"
casper.start(url,function(){
console.log("PAGE CHARGEE");
casper.screenshot
});
casper.then(function(){
casper.sendKeys('input#login','email');
this.click("a.submit");
console.log("PAGE 1 OK");
});
casper.then(function(){
casper.sendKeys('input#userNameInput','Email');
casper.sendKeys('input#passwordInput','Password');
this.click("span#submitButton.submit");
console.log("PAGE 2 OK");
});
casper.then(function(){
casper.capture('navigation.png');
console.log("capture ok");
});
casper.run();
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)