参考资料:http://casperjs.readthedocs.org/en/latest/modules/casper.html#sendkeys
casper.then(function() {
this.sendKeys('form.contact input#name', 'Duke');
this.sendKeys('form.contact textarea#message', "Damn, I'm looking good.");
this.click('form.contact input[type="submit"]');
});
页面滑到底部:
casper.start('http://foo.bar/home', function() {
this.scrollToBottom();
});