
August 10th, 2005, 06:37 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 3
Time spent in forums: 12 m 22 sec
Reputation Power: 0
|
|
|
web automation: clicking a link
Hi there,
I am trying to play around with web automation using C#.
Below is the code I use to click a button:
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
HTMLInputElement btnSearch = (HTMLInputElement) myDoc.all.item("Login", 0);
btnSearch.click();
A link does not have a name, does anyone know how to click a link?
Please help..
Thank you in advanced.
|