|
-
Jun 10th, 2022, 10:44 PM
#11
New Member
Re: VB6 WebView2-Binding (Edge-Chromium)
just ran across this, it's exactly what i've been looking for, so thank you.
i have a question, hopefully someone can help.
i've figured out mostly everything i need, but i need help with 2 things.
1) outputting the entire html of the website into a textbox. i was able to use WV.jsProp("document.body.innerHTML") but it only captures part of the html, and i need the entire source of the page.
2) scan entire page for elements such as ID, NAME, HREF, and display them in a textbox. basically, with the webbrowser control i would do this:
For X = 0 To WebBrowser1.Document.All.Length
strID = WebBrowser1.Document.All.Item(X).Id
If Not strID = "" Then txtIDs.Text = txtIDs.Text & "(" & X & ") " & wB.Document.All.Item(X).Id & vbNewLine
Next X
so basically that just loops through every element on the page, checks if it has an ID, and if so it displays it in a textbox. then you can replace Id with name or href. i need to re-create that same thing here. does anyone know how to achieve this? thanks!
----
edit:
i figured out #1 i think. if anyone else is having the same issue, try using WV.jsProp("document.documentElement.outerHTML")
Last edited by inspace; Jun 10th, 2022 at 11:02 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|