How to fill webpage forms with c#
Hello all, i`m having a big problem, i`m trying to make a program that can login into my webpage account (fills in username and password textbox) and than preforms click on a link. Is that possible with c# webbrowser, and how? can some1 help me? plzz

Kirtan PatelRank #292 · 8.6K reputationPosted Nov 23, 2009, 7:58 AM EST
Below Code will Open yahoo and Enter Login Information then Press Login Button Automatically :)
if my answer helps you then check "Do you like this answer" check box please :)
private void Form1_Load(object sender, EventArgs e) { this.wb.Url = new Uri("https://login.yahoo.com/config/login_verify2?.intl=gr&.src=ym"); this.wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted); } public void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { HtmlElement username = this.wb.Document.All["username"]; username.SetAttribute("value", "exploite.world"); HtmlElement pass = this.wb.Document.All["passwd"]; pass.SetAttribute("value", "TestPassword"); HtmlElement goButton = this.wb.Document.All[".save"]; goButton.InvokeMember("click"); return; }