Skip to content Skip to sidebar Skip to footer

Populate Doc Only After The Page Is Completely Loaded

Solution 1:

Jsoup is a HTML parser, not a webbrowser. Like as most HTML parsers, Jsoup doesn't execute any JavaScript code.

You need instead a HTML parser which can execute JavaScript. HtmlUnit is such one, it's a GUI-less webbrowser designed for unit-testing purposes and is capable of executing JavaScript contained in the webpage which may modify the HTML DOM tree. You could try using it instead.

Post a Comment for "Populate Doc Only After The Page Is Completely Loaded"