I am trying to download the fully generated html source file for the following url: http://www.morningstar.com/funds/xnas/vinix/quote.html
In particular I am interested in extracting the generated numerical data in the table under the header "Performance VINIX", for instance, the row "Growth in 10,000". I have tried the approach outlined in this popular answer. But the saved text html file looks just like the pre-generated raw source file, with all the javascript and none of the generated content. For instance, when I grep for the word "Growth" I get nothing.
I have also gone through the DOM structure in chrome web devtools to identify the innermost element that contains this table, whose xpath is /html/body, and use the find_element_by_xpath technique to isolate the element, then saved the following string object:
content = browser.find_element_by_xpath('/html/body').text
Still that did not work. Any idea why? Many thanks!