I am trying get the content of a web page after the execution of the javascript code in the page. Let's suppose for example that I have the following page :
<html>
<body>
test:
<div id="inner"></div>
<script type="text/javascript">
document.getElementById('inner').innerHTML = "Hello World!";
</script>
</body>
</html>
what I want to extract is the page after the execution of the javascript, so the rendered html :
<html>
<body>
test:
<div id="inner">Hello World</div>
</script>
</body>
</html>
Is it possible in htmlUnit?