FAIL entering aspx website https://secure2.lionair.co.id/lionairibe/Step1.aspx

81 views
Skip to first unread message

Alfado Puja Kusuma

unread,
Jan 24, 2013, 2:39:39 AM1/24/13
to phan...@googlegroups.com
var page = require('webpage').create();
phantom.cookiesEnabled = true;
    console.log(JSON.stringify(phantom.cookies, null, 2));
    phantom.exit();
});

var casper = require('casper').create();
casper.start('http://www.lionair.co.id/default.aspx', function() {
    this.fill('form', {
        'UcFlightSelection$ddlOri':'SOC',
        'UcFlightSelection$ddlDes':'CGK',
        'UcFlightSelection$txtOri':'Solo (SOC)',
        'UcFlightSelection$txtDes':'Jakarta (CGK)',
    }, false);
    this.click('#searchFlightsButton');
});

casper.wait(10000, function() {
    this.echo(this.getCurrentUrl());
});
casper.run(function() {
    this.echo('message sent').exit();
});

Ariya Hidayat

unread,
Jan 26, 2013, 12:14:31 PM1/26/13
to phan...@googlegroups.com
Please learn some common netiquettes.

* Don't just dump code (without explanation) in our face, that's impolite.

* Explain your own problem-solving attempt, read
http://whathaveyoutried.com for more details.

* Narrow down the issue, otherwise it will be perceived as "please fix
my code" request and usually ignored by everyone.



--
Ariya Hidayat, http://ariya.ofilabs.com
http://twitter.com/ariyahidayat
http://gplus.to/ariyahidayat
Reply all
Reply to author
Forward
0 new messages