I am facing an issue with the JSDom could you please help me to resolve the issue. when i am loading the external file which loads some files through steal and render the html.
when i am executing the below code i am always getting the empty dom. How to load a file after the external scripts got executed and the dom is ready. Thanks
jsdom.env({
url: 'index.html',
features : {
FetchExternalResources : ['script'],
ProcessExternalResources : ['script'],
runScripts: "dangerously"
},
done: function(errors, window){
var $ = window.$;
$(window.document).ready(function(){
console.log(window.document.body.innerHTML);
});
//console.log(window.$);
// var bc = $('#text-input-example0').getComponent();
// console.log(bc);
// var ab = $('#text-input-example0_mca_input').val();
// console.log(ab);
}
});