I'm trying to login twitter mobile version in c# using getelementbyid. but when i invoke the click of the login button i get the following error. " Object reference not set to an instance of an object." here is the code im using. any help would be amazing.
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Document.GetElementById("session[username_or_email]").InnerText = textBox1.Text.ToString();
webBrowser1.Document.GetElementById("session[password]").InnerText = textBox2.Text.ToString();
webBrowser1.Document.GetElementById("signupbutton").InvokeMember("click");
}