[RESOLVED] how to view updated code of dynamically changed webpage without refreshing?
In webbrowser, I am visiting a website that lists 10 items per page, I select "20 items per page". The webpage dynamically updates to display a list of 20 items.
However when I view the webpage code it still shows 10 items. If I refresh the webbrowser, the code will show 20 items.
Is there a way to view the updated webpage code without refreshing?
Re: how to view updated code of dynamically changed webpage without refreshing?
If you loop through the actual HtmlElementcollection of that browser control, I think all 20 will be there.
Justin
Re: [RESOLVED] how to view updated code of dynamically changed webpage without refres
Yes that worked, thank you!
vb Code:
Dim webpageDoc As HtmlDocument = WebBrowser1.Document
Dim webpageEls As HtmlElementCollection = webpageDoc.GetElementsByTagName("a")
For Each el As HtmlElement In webpageEls
Debug.WriteLine(el.OuterText)
Next