I\'m using phantomjs(1.5) and casperjs for my functional tests.
casper = require(\'casper\').create loadImages: false casper.start \'http://vk.com\', ->
If your application is on a different domain than the one in the iframe, then your script can't interact with the iframe's contents. See: Can scripts in iframe interact with scripts in the main page