Hello Olaf,
Since I last posted I have used the WebView2 control very successfully to display web pages in my programs. I would now like to extend that to extracting the html content of a page (to a variable or save to file) after it has displayed. This is required with pages that use code to generate their content from a database (eg an Amazon S3 bucket). I assume it requires a script but could not work out how to do it from the examples in the demo. Is it possible and could you give me an example?
Thanks
Update:
I already had the solution I need:
but forgot that with a large amount of content the page needs a long time to complete!Code:WV.jsProp("document.body.outerText")




Reply With Quote