I have a webpage with an iframe. I\'d like to access the contents of the iframe using CasperJS. In particular, I need to click buttons and fill a form. How can I do that?
From 1.0 you can use withFrame
casper.open("http://www.example.com/page.html", function() { casper.withFrame('flashHolder', function() { this.test.assertSelectorExists('#the-flash-thing', 'Should show Flash'); }); });