1

say i load a page via WebBrowser.document class, I want to literally "click" elements in the DOM using VB.net programmatically. I dont want to use the classic WebRequest class.

how can i do this ?

1 Answer 1

1

The HtmlDocument class in the System.Windows.Forms namespace doesn't help?

There might not be representations of every element type in the DOM in the System.Windows.Forms namespace, but each element has a DomElement property which is the reference to the unmanaged COM interface.

You can then cast those to the appropriate interfaces imported from MSHTML to work with the DOM in any way that you choose.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.