simpleonlinetester
Member
- Joined
- Apr 13, 2011
- Messages
- 19
- Programming Experience
- Beginner
I am building an app where there will be several instances where ID's are going to be listed and then several instances where their will be tagnames, classes.
Rather than having to using the GetElementbyID for each one that requires an ID name and another chunk of code for GetElementByTagName can I use something like
Would something like this work as a template for all elements where I would just replace the getattribute type to name, or , id, or even class?
Thanks
Rather than having to using the GetElementbyID for each one that requires an ID name and another chunk of code for GetElementByTagName can I use something like
VB.NET:
Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
For Each webpageelement As HtmlElement In allelements
If element.getattribute("ID")= "Cloud" then
Element.setAttribute("value", "sky")
End If
Would something like this work as a template for all elements where I would just replace the getattribute type to name, or , id, or even class?
Thanks