vb.net - Get HTML Source after JavaScript manipulations -
How do I get completed! HTML source of web page, after which some JavaScript code has been run, which alters HTML source.
I am using VB.Net's WebBrower control, I want to create an additional function that gets the full HTML source of my custom webbrosenteration.
Thanks in advance
One of the tricks to inform about control Looking for the way that JS is running. You may be able to do that JS has set a form element 'value (isJSComplete) when it is complete and web browser can vote with control.
Use the following code to check a form to see if it is ready
MyBrowserControl.document.getElementById ('IsJSComplete');
Use the following code to draw HTML from the page.
MyBrowserControl.Document.documentElement.OuterHTML
Better yet, here's how JSB to control by WebBrowser control Waving the event is just you can break an event when JS is done and your code is trapped and then drag the HTML using the above approach.
Comments
Post a Comment