How to Get Element by class in c#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I m creating a C# application in which i m using Web Browser control, tell me how to get element by class name

HtmlDocument doc = webBrowser1.Document;<br/>
HtmlElement Username = doc.GetElementById("user_name");

this is with ID but now i want to fetch element with class !!!!!!!!!!!!!

is there any method to fetch element with class name????



View the full article
 
Back
Top