I have a web page whose contents I need to get as a string.
Some of the content is loaded via javascript after the page has fully loaded.
Doing
URL url = new URL("http:example.com/");
URLConnection con = url.openConnection();
InputStream is = con.getInputStream();
will not work as I cannot get the content that is loaded later.
Any ideas as to how I an achieve this?