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.
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
I need help with this :/ How do i get htmlelementcollection from webkitbrowser.document !
I tried using the same code from web browser :
"Value of type "WebKit.DOM.NodeList" can not be converted to "System.Windows.Forms.HtmlElementCollection"."
Any help on how can i get the HtmlElementCollection ?
I tried using the same code from web browser :
Code: Select all
But if i try
Dim TheElementCollection1 As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("TAG")
Code: Select all
it says :Dim TheElementCollection1 As HtmlElementCollection = WebKitBrowser.Document.GetElementsByTagName("TAG")
"Value of type "WebKit.DOM.NodeList" can not be converted to "System.Windows.Forms.HtmlElementCollection"."
Any help on how can i get the HtmlElementCollection ?
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")
How can i now call "For each CurElement as htmlelement in theelementcollection1" ?
Found it
Tnx mandai a lot


Code: Select all
For Each item As WebKit.DOM.Element In TheElementCollection1
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023