winforms - C# webBrowser1.Document - find all elements by class attribute -
i'm using webbrowser command in winform app c# fw4.0, , find elements class attribute contains value. possible?
you can this, take work on own.
an illustration on how find a tags class show1 should help find need. here excerpt illustration there
var links = webbrowser1.document.getelementsbytagname("a"); foreach (htmlelement link in links) { if (link.getattribute("class") == "show1") { //do } } c# winforms dom mshtml
No comments:
Post a Comment