Welcome Guest Search | Active Topics | Sign In | Register

Search element in element Options
Joey Wu
Posted: Saturday, May 7, 2016 11:28:27 AM
Rank: Newbie
Groups: Member

Joined: 5/7/2016
Posts: 1
Dear Sir.

Is there any example shown how to dig or search element`s child element?
Like I can do this on microsoft webbrowser?

For Each cbBlock As HtmlElement In wbMain.Document.GetElementsByTagName("div")
If cbBlock.GetAttribute("classname") IsNot Nothing AndAlso cbBlock.GetAttribute("classname") = "subcontent" Then
Dim curLeague As String = String.Empty
For Each gLine As HtmlElement In cbBlock.GetElementsByTagName("tbody")
.
.
.
Next
End If
Next

Thanks a lot.

Joey
eo_support
Posted: Sunday, May 8, 2016 9:43:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You will need to use EvalScript for this:

http://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.