I am new to C# i want to develop a windows application to automate work.
Like i have a webform where user always goto that site he has to click the submit link. So i
want to do it automate. I am able to create a webrequest to the site by using
1st method
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Referer = "http://referer.com";
request.UserAgent = "Mozilla/5.0";
response = (HttpWebResponse)request.GetResponse();
2nd method
Process proc = new Process();
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start("firefox.exe", "urlofform");
Thread.Sleep(5000);
SendKeys.SendWait("{TAB}");
SendKeys.SendWait("{TAB}");
SendKeys.SendWait("~");
Thread.Sleep(3000);
in the actual form i have a anchor tag like this
I want to click on the anchor automatically by using C# coding from windows application how can i achieve this?.....And which is the best way?