0
Answer

How to Click Element in DOM document

Abdul Asif

Abdul Asif

17y
1.7k
1

Hi All,

 

I am working on a project that host WebBrowser control using C#. Objecive of this project to automate

webBrowser. I have the element that, I want to be click automatically. Please Help!!

 

 

//Browser name = LPBrowser

 

mshtml.IHTMLDocument3 doc = (mshtml.IHTMLDocument3)this.LPBrowser.Document.DomDocument;

 

doc.getElementById("newlink").click();  //This click() method doesn't work me