2013年1月21日 星期一

Automating Facebook Login using WebBrowser Control in C#-CodeGain

  1.  

HtmlElement ele = webBrowser1.Document.GetElementById("email");

if (ele != null) ele.InnerText = "amalhashim@gmail.com"; ele = webBrowser1.Document.GetElementById("pass");if (ele != null) ele.InnerText = "password"; ele = webBrowser1.Document.GetElementById("Login");if (ele != null) ele.InvokeMember("click");

Automating Facebook Login using WebBrowser Control in C#-CodeGain