How to run scripts when using JSDOM.fromUrl()

165 views
Skip to first unread message

muzi...@gmail.com

unread,
Dec 22, 2017, 5:08:22 AM12/22/17
to jsdom
Hello,

I'm trying to use to JsDOM.fromUrl() to get the whole DOM of a webpage but it doesn't seem to execute the javascript files presented in the html even when passing {runScripts: "dangerously"} as the options argument. As an result of this the DOM of the page is nothing but a tempelate and everything which is generated dynamically is left out. What is the proper way of using .fromUrl() to generate DOM similar to what you get when visiting a webpage with a real browser?

Thanks
Reply all
Reply to author
Forward
0 new messages