Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

element have not getElementsByTagName Options
sexfio1
Posted: Wednesday, November 27, 2019 3:21:51 AM
Rank: Member
Groups: Member

Joined: 10/17/2019
Posts: 14
Code: Visual Basic.NET
For Each h1 In WebView1.GetDOMWindow.document.getElementsByTagName("div")
                    If h1.className = "WB_text W_f14" Then
                        For Each h2 In h1.getElementsByTagName("a")   '<<<<<<<<error
                            ...
                        Next
                        Exit For
                    End If
                Next


element have not getElementsByTagName,how to get h1's .getElementsByTagName("a") ??
eo_support
Posted: Wednesday, November 27, 2019 9:48:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,737
Hi,

You will need to use JavaScript to do these kind of things. See here for more details:

https://www.essentialobjects.com/doc/webbrowser/advanced/js.aspx#evalscript

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.