title: PhantomJS and iFrame
body: <p>I'm using phantomjs(1.5) and <a href="http://casperjs.org/" rel="noreferrer">casperjs</a> for my functional tests.</p>
  
  <pre><code>casper = require('casper').create
    loadImages: false
  
  
  casper.start 'http://vk.com', -&gt;
    @fill 'form[name="login"]', { email: mail, pass: pass}, true
  
  casper.thenOpen "http://vk.com/#{app}", -&gt;
    @echo "User at #{app}"  
  casper.then -&gt;
    @click "iframe['element']" #?! how I can do it?
  casper.then -&gt;
    @wait 2000000, -&gt; @echo "exit from room: #{num}"
  
  
  casper.run()
  </code></pre>
  
  <p>So, I login to vk.com (social network in Russia), my app loaded with iframe.</p>
  
  <p>How I can use elements in iFrame, for example click to a button? </p>