Hello
I am trying to inject a full html document into an iframe, like so:
var unitTestcaseHTML = "<full html document with all the tags and all>";
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
iframe.contentWindow.document.open();
iframe.contentWindow.document.write(unitTestcaseHTML);
iframe.contentWindow.document.close();
When I do this, in the testcase it self I am not able to access the iframe document with the content that I provided it keeps getting empty content. However when I open it in debug it looks like everything is rendered and I can see it all.
Thanks
Devan