Quote:
Originally Posted by Quazar
I have begun fiddling around with casperjs but it'll take some time for me to get some progress done. Whenever I try accessing any element other than the outer most frame, casperjs acts as if they are not there (selectors are not being found) but the website is being captured fine.
A little example:
Code:
casper.start('http://myfreecams.com/', function() {
this.echo(this.getTitle());
casper.capture('step1.png'); // works fine, shows the website with the "I am over 18" button on top.
});
casper.click('#enter_desktop', function() { // Fails because the selector cannot be found, even though it was clearly shown in step1.png
this.echo('Passed age gate.');
casper.capture('step2.png');
}
|
Cool find!
To install this on Ubuntu 14.04:
Code:
apt -get install phantomjs git -y; git clone git://github.com/n1k0/casperjs.git; cd casperjs; ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs;
Confirm installation with:
Code:
phantomjs --version; casperjs | head -n1 | awk {'print $9'}
Output should appear as such:
I'm playing around with this myself now, I'm analyzing MFC via Wireshark in a VM to try and figure out how to bust through the age prompt.
Will update this thread in a little bit with my findings...