184
rated 0 times
[
191]
[
7]
/ answers: 1 / hits: 15127
/ 12 Years ago, fri, march 30, 2012, 12:00:00
I'm using phantomjs(1.5) and casperjs for my functional tests.
casper = require('casper').create
loadImages: false
casper.start 'http://vk.com', ->
@fill 'form[name=login]', { email: mail, pass: pass}, true
casper.thenOpen http://vk.com/#{app}, ->
@echo User at #{app}
casper.then ->
@click iframe['element'] #?! how I can do it?
casper.then ->
@wait 2000000, -> @echo exit from room: #{num}
casper.run()
So, I login to vk.com (social network in Russia), my app loaded with iframe.
How I can use elements in iFrame, for example click to a button?
More From » coffeescript