WebKit WebBrowser help !

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

WebKit WebBrowser help !
M1z23R
I need help with this :/ How do i get htmlelementcollection from webkitbrowser.document !

I tried using the same code from web browser :
Code: Select all
Dim TheElementCollection1 As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("TAG")
But if i try
Code: Select all
Dim TheElementCollection1 As HtmlElementCollection = WebKitBrowser.Document.GetElementsByTagName("TAG")
it says :
"Value of type "WebKit.DOM.NodeList" can not be converted to "System.Windows.Forms.HtmlElementCollection"."
Any help on how can i get the HtmlElementCollection ?
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: WebKit WebBrowser help !
mandai
I would have thought HtmlElementCollection is not interchangable with WebKit.DOM.NodeList. You should declare it like:
Code: Select all
Dim TheElementCollection1 As WebKit.DOM.NodeList = WebKitBrowser.Document.GetElementsByTagName("TAG")
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: WebKit WebBrowser help !
M1z23R
How can i now call "For each CurElement as htmlelement in theelementcollection1" ?
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: WebKit WebBrowser help !
M1z23R
Found it :) Tnx mandai a lot :)
Code: Select all
 For Each item As WebKit.DOM.Element In TheElementCollection1
4 posts Page 1 of 1
Return to “Tutorial Requests”