0
Reply

How to Click Element in DOM document

Abdul Asif

Abdul Asif

Oct 17 2007 7:42 PM
1.7k

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