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');
}