HtmlUnit doesn't load externally referenced javascript

孤者浪人 提交于 2019-12-01 12:06:37

After many many hours of googling I found the solution to be very simple. All I had to do was to wait a few seconds after the page is retrieved to allow the javascript some time to execute before doing anything else. I can honestly say finding the solution was a bit of an anticlimax, but at least I can move along to more important stuff now. :)

That tag loads an external file: "urltofile.js", so it's not strange to have nothing into because the js code is loaded from that file and not injected into the existing markup.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!