I want to click a button which is on webpage opened in iframe based on class selector from my parent page.
I tried this:
$.each($('.classname'), function(i, el){
setTimeout(function(){
$(el).trigger('click');
},30000 + ( i * 30000 ));
});
but no success. How can i achieve this?