Hi, I'm trying to use Visual C# 2008 to make a program...
What I want to do is make a program that clicks a link in the webbrowser.
At the moment I can make the program fill in a form like this:
Also I have can make it click a submit button like this:
Now what I want to do is click a link, but the website could be different each time so all I will know is the text which will be "Next".
Does anyone know how to make it follow a link with the text "Next"?
Thanks,
Paul
What I want to do is make a program that clicks a link in the webbrowser.
At the moment I can make the program fill in a form like this:
Code:
HtmlDocument htmldoc = null;
HtmlElement htmlelem = null;
htmldoc = webBrowser1.Document;
htmlelem = htmldoc.GetElementById("textbox");
htmlelem.SetAttribute("value","Test");
Code:
htmlelem = htmldoc.GetElementById("submit");
htmlelem.InvokeMember("Click");
Does anyone know how to make it follow a link with the text "Next"?
Thanks,
Paul