Jump to content
polasss

Delphi, WebView2 - ExecuteScript - get the complete source website

Recommended Posts

how to use ExecuteScript to get the complete page source - something like browser does with

view-source: https//..any..web..page

If I call

ExecuteScript wbBrowser.ExecuteScript('document.documentElement.outerHTML') 

i only get what is displayed on the page. However, there are web pages that display data in a table and currently only display a portion of the records (e.g. 1-10 out of 1000). By calling 

wbBrowser.ExecuteScript('document.documentElement.outerHTML') i only get the current 1-10, but the browser will display the complete data using 

view-source: https//****).

Unfortunately, for data protection reasons I can't show the source of the page.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×