Ses Manijak
Ses Manijak

Reputation: 133

Click on web browser

I want to programatically click on WebBrowser1's web page.

I tried: WebBrowser1.Document.Click(), it doesn't work.

Upvotes: 0

Views: 237

Answers (1)

Visual Vincent
Visual Vincent

Reputation: 18310

You cannot click the document itself, however you can access the body via WebBrowser.Document.Body and then call InvokeMember() on that:

WebBrowser1.Document.Body.InvokeMember("click")

Upvotes: 1

Related Questions