WebBrowser: Finding by class

  • Thread starter Thread starter bastawhiz
  • Start date Start date
B

bastawhiz

I want to create some method of finding elements in a htmldocument by
their class. For example, if I am trying to find all divs with the
class "friend", I would like something where I could go:

webbrowser.document.getByClass("friend")

If anyone has any method of doing this, please make it known.

Thank you
 
Never mind; figured it out:

If div.GetAttribute("className") = "friend" Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top